This is a sample for Flutter and gRPC Server for Dart. This project requires Docker and Melos to be installed.
To install Melos, run the following command:
dart pub global activate melos
Please follow the steps below in the root directory.
-
Resolving dependencies
melos bs
-
Start a Redis server
docker compose up -d
-
Start a gRPC server
melos run server
If the following log is output to the console, the startup is successful.
Server listening on port 8080...
Please follow the steps below in the root directory.
- lint
melos run pb:lint
- format
melos run pb:format
- generate
melos run pb:gen
- execute all
melos run pb:all