Veselchak-U / get_pet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Get Pet

Flutter demo-project with backend.

Technologies: BLoC v.6 (Cubit), code generation, GraphQL, Hasura, Firebase

Code generation

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

Сonnecting GraphQL extention

  1. Add Apollo extention in VSCode.

  2. Add config file apollo.config.js with content: module.exports = { client: { includes: ['./lib/**/*.dart'], service: { name: 'app_name', url: 'graphgl_endpoint_url', // optional headers headers: { 'x-hasura-admin-secret': 'secret_phrase', 'x-hasura-role': 'admin', }, // optional disable SSL validation check skipSSLValidation: true, }, }, }

  3. Download schema.json:

$ apollo schema:download

Build release apk for manual installation

$ flutter build apk --target-platform android-arm64

Build an app bundle for Google Play

$ flutter clean $ flutter build appbundle

About

License:MIT License


Languages

Language:Dart 98.8%Language:JavaScript 0.8%Language:Swift 0.2%Language:Kotlin 0.1%Language:Objective-C 0.0%