This repository uses Flutter for the client app and Go to Server for the purpose of building an app that uses gRPC for communication.
- Install Protobuf compiler:
brew install protobuf
- Install Dart-plugin for Protobuf compiler:
pub global activate protoc_plugin
export PATH=$PATH:$HOME/.pub-cache/bin
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.
protoc --dart_out=grpc:client/packages/stores_api/lib/src/generated -Iprotos protos/store.proto