Skip to content

Example of gRPC implementation with a API node.js express accessing a Micro Service Auth over gRPC

Notifications You must be signed in to change notification settings

romulotorres/gRPC_Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

gRPC-Example

Example of gRPC implementation with a API node.js express accessing a Micro Service Auth over gRPC

Instructions:

clone the repo

AuthService:

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

Api

From root

  • cd api
  • yarn install
  • yarn dev

Using!

  • 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

About

Example of gRPC implementation with a API node.js express accessing a Micro Service Auth over gRPC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published