Example of gRPC implementation with a API node.js express accessing a Micro Service Auth over gRPC
clone the repo
From root
- cd AuthService
- mv settings_sample.json settings.json
- Edit settings.json with your connection string. You can use a docker, MongoAtlas or another instance of MongoDB
- yarn install
- yarn dev
From root
- cd api
- yarn install
- yarn dev
- Try send a request to POST:localhost:3333/users with json body: {name: 'John Doe', email [email protected], password: '123456'}
- Try send a request to GET:localhost:3333/users
See the auth.proto to others options