shimizu-saffle / flutter_grpc_sample

πŸš€πŸ’™ This is a sample for Flutter and gRPC Server for Dart.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter_grpc_sample πŸš€πŸ’™

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

Start up a project

Please follow the steps below in the root directory.

  1. Resolving dependencies

    melos bs
    
  2. Start a Redis server

    docker compose up -d
    
  3. 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...

Generating code from a proto file

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
    

About

πŸš€πŸ’™ This is a sample for Flutter and gRPC Server for Dart.


Languages

Language:Dart 67.1%Language:C++ 15.3%Language:CMake 12.4%Language:Ruby 1.8%Language:Swift 1.2%Language:HTML 1.2%Language:C 0.9%Language:Kotlin 0.1%Language:Objective-C 0.0%