Skip to content

Instantly share code, notes, and snippets.

@neurodrone
Last active December 15, 2016 22:25
Show Gist options
  • Save neurodrone/74506771c45871611f7a820924fc5625 to your computer and use it in GitHub Desktop.
Save neurodrone/74506771c45871611f7a820924fc5625 to your computer and use it in GitHub Desktop.
Steps for installing gRPC on your dev environment.

GRPC Installation (go1.6)

  1. Follow instructions on https://github.com/google/protobuf/releases/tag/v3.0.0-beta-2 to install protoc v3.0.0.
  2. go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
  3. go get -u google.golang.org/grpc (might need to run go get -u golang.org/x/net/http2 if http2 errors are observed)

gRPC with REST/JSON

  1. go get -u github.com/gengo/grpc-gateway/protoc-gen-grpc-gateway
  2. go get -u github.com/gengo/grpc-gateway/protoc-gen-swagger
  3. Follow guide on gengo/grpc-gateway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment