Skip to content

Pet project with Flutter + Firebase + Hasura.

License

Notifications You must be signed in to change notification settings

aliffauzi/pet_finder

 
 

Repository files navigation

Pet Finder

Pet project with Flutter + Firebase + Hasura.

alt text

How to Start

$ flutter packages pub run build_runner build --delete-conflicting-outputs

for VSCode Apollo GraphQL

$ npm install -g apollo

create ./apollo.config.js

module.exports = {
  client: {
    includes: ['./lib/**/*.dart'],
    service: {
      name: '<project name>',
      url: '<graphql endpoint>',
      // optional headers
      headers: {
        'x-hasura-admin-secret': '<secret>',
        'x-hasura-role': 'user',
      },
      // optional disable SSL validation check
      skipSSLValidation: true,
      // alternative way
      // localSchemaFile: './schema.json',
    },
  },
}

how to download schema.json for localSchemaFile

$ apollo schema:download --endpoint <graphql endpoint> --header 'X-Hasura-Admin-Secret: <secret>' --header 'X-Hasura-Role: user'

👨‍🎨 Inspiration

Hope you guys enjoy it !
👋👋👋

About

Pet project with Flutter + Firebase + Hasura.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 98.8%
  • Other 1.2%