Skip to content

This repository uses Flutter for the client app and Go to Server for the purpose of building an app that uses gRPC for communication.

License

Notifications You must be signed in to change notification settings

sembh1998/gRPC_flutter_go_proof-of-concept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proof of concept

This repository uses Flutter for the client app and Go to Server for the purpose of building an app that uses gRPC for communication.


Prepare environments

  • Install Protobuf compiler:
brew install protobuf
  • Install Dart-plugin for Protobuf compiler:
pub global activate protoc_plugin
export PATH=$PATH:$HOME/.pub-cache/bin

Flutter getting Started 🚀

This project contains 3 flavors:

  • development
  • staging
  • production

To run the desired flavor either use the launch configuration in VSCode/Android Studio or use the following commands:

# Development
$ flutter run --flavor development --target lib/main_development.dart

# Staging
$ flutter run --flavor staging --target lib/main_staging.dart

# Production
$ flutter run --flavor production --target lib/main_production.dart

*Client works on iOS, Android, Web, and Windows.


Generate methods for client

protoc --dart_out=grpc:client/packages/stores_api/lib/src/generated -Iprotos protos/store.proto

About

This repository uses Flutter for the client app and Go to Server for the purpose of building an app that uses gRPC for communication.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published