Skip to content

Demo flutter app for GraphQL calls. It uses a GraphQL server written in Golang GQLGEN framework.

Notifications You must be signed in to change notification settings

parikshitg/flutter_graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FLUTTER GRAPHQL

Banner

This projects demonstrates the ideal way to call graphql queries and mutations. The app consists of creating a blog post and displaying the list of blog posts. The project-repo consist of two directories, flutter_client (our frontend client app written in flutter) and go-gql-server backend server written in golang. The go-gql-server is a graphql server with minimal go code and is a written using "github.com/99designs/gqlgen" package.

REQUIREMENTS

  • Computer
  • Golang
  • Flutter

RUN

To run golang backend server:

cd flutter_graphql/go-gql-server
make run or go run server.go  

To run flutter app:

cd flutter_graphql/flutter_client
flutter pub get
flutter run

[Note]

*You can see the graphql schema define in 'go-gql-server/graph/schema.graphqls'.

*The sample query and mutation are there in 'flutterclient/lib/config/muation.dart' and 'query.dart'.

About

Demo flutter app for GraphQL calls. It uses a GraphQL server written in Golang GQLGEN framework.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published