https://github.com/rsachdeva/blog-grpc-gateway
Go grpc gateway - translate REST JSON API into gRPC - Simple Blog backed by MongoDB
https://github.com/rsachdeva/blog-grpc-gateway
go go-grpc golang grpc-api grpc-gateway mongodb rest-api
Last synced: 29 days ago
JSON representation
Go grpc gateway - translate REST JSON API into gRPC - Simple Blog backed by MongoDB
- Host: GitHub
- URL: https://github.com/rsachdeva/blog-grpc-gateway
- Owner: rsachdeva
- License: mit
- Created: 2021-01-26T17:55:30.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-26T18:55:27.000Z (over 5 years ago)
- Last Synced: 2025-10-08T12:02:37.006Z (8 months ago)
- Topics: go, go-grpc, golang, grpc-api, grpc-gateway, mongodb, rest-api
- Language: Go
- Homepage:
- Size: 56.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blog-grpc-gateway
This project is added here for Demo.
Enables protocol buffer compiler to read gRPC Service definitions and translate REST JSON API into gRPC.
Uses MongoDB.
Locally Start MongoDB or
use Docker Compose
Example: [https://github.com/rsachdeva/illuminatingdeposits-grpc#start-mongodb](https://github.com/rsachdeva/illuminatingdeposits-grpc#start-mongodb)
```shell
sh ./runmongo.sh
```
Start gRPC Server
```shell
go run ./cmd/server
```
Start REST Server
```shell
go run ./cmd/restserver
```
Run gRPC Client to make gRPC Requests:
```shell
go run ./cmd/client
```
Run curl REST Client to make REST Http Requests:
```shell
sh ./runcurlrestclient.sh
```