Skip to content

rocketseat-content/youtube-challenge-grpc

Repository files navigation

Code Challenge - gRPC microservices

Two simple microservices that communicate with an REST API via gRPC.

Contributors License


Participants

Guilherme Rodz Higo Ribeiro

Roadmap

  • Microservice for User
  • Microservice for Purchases
  • 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

Getting started

  1. Clone this repository;
  2. Start MongoDB. Docker snippet: docker run -d --name=mongo-grpc -p 27017:27017 bitnami/mongodb
  3. Run npm or yarn install at each project in order to install dependencies.
  4. Run yarn dev on both microservices.
  5. Run yarn dev on API.
  6. Enjoy sending requests to REST API available at http://localhost:3333.
    6.1. You can import Insomnia file inside api folder.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests.

About

Micro-services communicating with gRPC.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published