Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/finkmoritz/flutter_amplify_todo
Simple ToDo Flutter app with an AWS Amplify serverless backend
https://github.com/finkmoritz/flutter_amplify_todo
Last synced: about 1 month ago
JSON representation
Simple ToDo Flutter app with an AWS Amplify serverless backend
- Host: GitHub
- URL: https://github.com/finkmoritz/flutter_amplify_todo
- Owner: finkmoritz
- Created: 2022-09-30T14:09:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-02T14:49:55.000Z (over 2 years ago)
- Last Synced: 2023-04-30T19:32:22.058Z (over 1 year ago)
- Language: Dart
- Size: 153 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flutter Amplify ToDo Demo App
This demo project demonstrates the use of AWS Amplify to create a serverless ToDo app with Flutter.
## Getting Started
_Note: If not described otherwise, execute commands in the project root folder._
### Prerequisites
Install following tools:
- [git](https://git-scm.com/)
- [Flutter](https://flutter.dev/docs/get-started/install)
- [Node.js](https://nodejs.org/)
- [npm](https://www.npmjs.com/get-npm)Create an [AWS account](https://portal.aws.amazon.com/billing/signup?redirect_url=https%3A%2F%2Faws.amazon.com%2Fregistration-confirmation#/start)
(in case you do not already have one)### Configure Amplify CLI
- Install CLI via ```npm install -g @aws-amplify/cli```
- Configure CLI with your AWS profile via ```amplify configure```
- Initialize Amplify in this project via ```amplify init``` (use the AWS profile configured in the previous step)### Configure Amplify Auth
Execute ```amplify add auth``` with following configuration:
````
Do you want to use the default authentication and security configuration?
Default configuration
How do you want users to be able to sign in?
Username
Do you want to configure advanced settings?
No, I am done.
````Push your changes using ```amplify push```.
### Configure Amplify DataStore
Execute ```amplify add api``` with following configuration:
````
Select from one of the below mentioned services:
GraphQLHere is the GraphQL API that we will create. Select a setting to edit or continue (Use arrow keys)
Name:
Authorization modes: Cognito User Pool
Conflict detection (required for DataStore): Enabled
Conflict resolution strategy: Auto MergeChoose a schema template:
Single object with fields (e.g., “Todo” with ID, name, description)
````Push your changes using ```amplify push```.
### Configure Amplify Storage
Execute ```amplify add storage``` with following configuration:
````
Select from one of the below mentioned services:
Content (Images, audio, video, etc.)
Provide a friendly name for your resource that will be used to label this category in the project:Provide bucket name:
Who should have access:
Auth users only
What kind of access do you want for Authenticated users?
create/update, read, delete
Do you want to add a Lambda Trigger for your S3 Bucket? (y/N)
no
````Push your changes using ```amplify push```.
### Configure Amplify Analytics
Execute ```amplify add analytics``` with following configuration:
````
Select an Analytics provider
Amazon Pinpoint
Provide your pinpoint resource name:Apps need authorization to send analytics events. Do you want to allow guests and unauthenticated users to send analytics events? (we recommend you allow this when getting started)
Yes
````Push your changes using ```amplify push```.