Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

flutter_amplify_datastore_demo

whatsapp download using amplify datastore in flutter

demo--5-

about the project

title_image

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

  1. download the repo
    geekyants/flutter_amplify_datastore_demo
    
  2. install npm packages
    flutter pub get
    
  3. 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.
    
  4. 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.

  1. download the project
  2. create your feature branch (git checkout -b feature/flutter_amplify_datastore_demo)
  3. commit your changes (git commit -m 'add some flutter_amplify_datastore_demo')
  4. push to the branch (git push origin feature/flutter_amplify_datastore_demo)
  5. open a pull request

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.