flutter_amplify_datastore_demo
whatsapp download using amplify datastore in flutter
about the project
built with
getting started
to get a local copy up and running follow these simple steps.
prerequisites
- you should have flutter installed in your system.
- aws account is required to provision all the resources.
- aws amplify cli should be installed and configured with aws account.
installation
- download the repo
geekyants/flutter_amplify_datastore_demo
- install npm packages
flutter pub get
- run amplify init to initialize amplify project and app api to provision resource
amplify init amplify add api amplify add auth // choose email and password authentication.
- replace graphql schema in
amplify/backend/api/flutteramplifyapi/schema.graphql
file with below content.type chatroom @model @auth(rules: [{ allow: public }]) @key(name: "byuser", fields: ["userid"]) { id: id! otheruserid: string otherusername: string userid: id chatid: string untitledfield: string } type chatdata @model @auth(rules: [{ allow: public }]) { id: id! message: string createdat: awsdatetime chatroomid: string senderid: string } type user @model @auth(rules: [{ allow: public }]) { id: id! username: string! email: string bio: string profileimage: string isverified: boolean createdat: awsdatetime chats: awsjson chatrooms: [chatroom] @connection(keyname: "byuser", fields: ["id"]) }
contributing
contributions are what make the open source community such an amazing place to be learn, inspire, and create. any contributions you make are greatly appreciated.
- download the project
- create your feature branch (
git checkout -b feature/flutter_amplify_datastore_demo
) - commit your changes (
git commit -m 'add some flutter_amplify_datastore_demo'
) - push to the branch (
git push origin feature/flutter_amplify_datastore_demo
) - open a pull request
Comments are closed.