Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkweon/grpc-rest-via-gateway
gRPC to REST via gRPC Gateway
https://github.com/kkweon/grpc-rest-via-gateway
Last synced: 24 days ago
JSON representation
gRPC to REST via gRPC Gateway
- Host: GitHub
- URL: https://github.com/kkweon/grpc-rest-via-gateway
- Owner: kkweon
- Created: 2021-05-02T00:01:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-05-02T04:41:08.000Z (over 3 years ago)
- Last Synced: 2024-10-29T08:22:03.443Z (2 months ago)
- Language: Go
- Homepage: https://grpc-gateway-example.herokuapp.com/v1/blog
- Size: 3.21 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gRPC -> REST via gRPC Gateway Example
## Install the dependencies
For Go,
```shell
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](https://buf.build) is used to generate proto files.
```shell
buf generate
```## Deploy to Heroku
```shell
heroku container:push web
heroku container:release web# Check the app
heroku open
```