Getting Started gRPC in Dart

Ardiansyah Putra

gRPC, the modern, lightweight communication protocol from Google. It’s a high-performance, open-source universal remote procedure call (RPC) framework that works across a dozen languages running in any OS.

Install Protocol Buffers v3

  1. Download protoc compiler from Github for your OS (protoc-<version>-<os>.zip)
  2. Unzip the resource and add its directory into environment PATH, for example in ~/.bash_profile append line export PATH=”$PATH:/Users/putraxor/Dev/protoc-3.6.1-osx-x86_64/bin”
  3. Next, install the protoc plugin for Dart
    pub global activate protoc_plugin
  4. Add protocol compiler to your PATH
    export PATH=$PATH:$HOME/.pub-cache/bin
  5. Try to generate stubs from this repository

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade