Skip to content

A recipe management app built with Hasura GraphQL Backend and Flutter

Notifications You must be signed in to change notification settings

graphicbeacon/recipe_management_app

Repository files navigation

Recipe Management App with Hasura and Flutter

A recipe management app built with Hasura GraphQL Backend and Flutter

Pre-requisites

  1. Dart & Flutter SDK
  2. Docker
  3. Hasura

Launch Flutter project

  1. Open the rm_graphql_client folder in VS Code or Android Studio.
  2. Launch an iPhone/Android simulator. Alternatively, connect your Android phone and enable USB debugging.
  3. Run flutter run in the terminal or use the launch button in your editor.

Seeding database with dummy data

  1. Visit your GraphiQL interface -> http://localhost:8080/console
  2. In the query section enter:
mutation InsertRecipes($objects: [recipes_insert_input!]!) {
  insert_recipes(objects: $objects) {
    returning {
      id
      name
      description
      image_url
      __typename
      ingredients {
        id
        name
        recipe_id
        __typename
      }
    }
  }
}
  1. In the query variables section paste the contents of data.json
  2. Execute the query to seed your database 🚀

Check out the starter branch for the base setup of this course.

See the full course for further instructions.

About

A recipe management app built with Hasura GraphQL Backend and Flutter

Resources

Stars

Watchers

Forks

Packages

No packages published