Two simple microservices that communicate with an REST API via gRPC.
Guilherme Rodz | Higo Ribeiro |
- Microservice for User
- Microservice for Purchases
- REST API that communicates with microservices
- Both microservices are not restricted to communicate with API only.
- Try usage of gRPC unidirectional and bidirectional
streams
; - Improve security and credentials;
- Node = 10
- Clone this repository;
- Start MongoDB. Docker snippet:
docker run -d --name=mongo-grpc -p 27017:27017 bitnami/mongodb
- Run
npm or yarn install
at each project in order to install dependencies. - Run
yarn dev
on both microservices. - Run
yarn dev
on API. - Enjoy sending requests to REST API available at
http://localhost:3333
.
6.1. You can importInsomnia file
insideapi
folder.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.