Giter Club home page Giter Club logo

flutter_amplify_graphql_demo's Introduction


Logo

Whatsapp Clone using Amplify GraphQL API in Flutter

About The Project

product-screenshot

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. Clone the repo

    git clone https://github.com/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 # choose GraphQL
    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. Fork 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

flutter_amplify_graphql_demo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.