youtube-challenge-grpc
youtube-challenge-grpc copied to clipboard
Micro-services communicating with gRPC.
Code Challenge - gRPC microservices
Two simple microservices that communicate with an REST API via gRPC.
Participants
| Guilherme Rodz | Higo Ribeiro |
Roadmap
- [x] Microservice for User
- [x] Microservice for Purchases
- [x] REST API that communicates with microservices
Notes
- Both microservices are not restricted to communicate with API only.
What can be better?
- Try usage of gRPC unidirectional and bidirectional
streams; - Improve security and credentials;
Dependencies
- Node = 10
Getting started
- Clone this repository;
- Start MongoDB. Docker snippet:
docker run -d --name=mongo-grpc -p 27017:27017 bitnami/mongodb - Run
npm or yarn installat each project in order to install dependencies. - Run
yarn devon both microservices. - Run
yarn devon API. - Enjoy sending requests to REST API available at
http://localhost:3333.
6.1. You can importInsomnia fileinsideapifolder.
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.