Skip to content

Go grpc gateway - translate REST JSON API into gRPC - Simple Blog backed by MongoDB

License

Notifications You must be signed in to change notification settings

rsachdeva/blog-grpc-gateway

Repository files navigation

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

sh ./runmongo.sh

Start gRPC Server

go run ./cmd/server

Start REST Server

go run ./cmd/restserver

Run gRPC Client to make gRPC Requests:

go run ./cmd/client

Run curl REST Client to make REST Http Requests:

sh ./runcurlrestclient.sh

About

Go grpc gateway - translate REST JSON API into gRPC - Simple Blog backed by MongoDB

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published