Skip to content

kkweon/grpc-rest-via-gateway

Repository files navigation

gRPC -> REST via gRPC Gateway Example

Install the dependencies

For Go,

go install \
  github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway \
  github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2 \
  google.golang.org/protobuf/cmd/protoc-gen-go \
  google.golang.org/grpc/cmd/protoc-gen-go-grpc

Buf is used to generate proto files.

buf generate

Deploy to Heroku

heroku container:push web
heroku container:release web

# Check the app
heroku open