A Dart Frog example using Protobuffers
protobuf_play
An example application built with dart_frog using protobuffers.
To Generate Dart Files From .proto
- If you haven’t installed the compiler, download the package and follow the instructions in the README.
- Install the Dart Protocol Buffer plugin as described in its README. The executable bin/protoc-gen-dart must be in your PATH for the protocol buffer protoc to find it.
- Run the complier using this command:
protoc --dart_out=lib/src addressbook.proto
(for more help, visit this guide)
To Run
- Download and install the dart_frog_cli
- Start the server with
dart_frog dev