Skip to content

gmstam/nestjs-grpc-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

gRPC Microservice example with NestJS

I write this example to get a starter project based on gRPC microservices with NestJS.

Folders:

  • micro-svc is the gRPC service
  • client-svc is the client which communicate with the gRPC sercice and it exposes a basic REST API

Requirements

If not installed, install protobuf

# MacOS
brew install protobuf

Now it will be possible to generate services from proto file. For example:

protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=outputEncodeMethods=false,outputJsonMethods=false,outputClientImpl=false,nestJs=true --ts_proto_out=. ./src/proto/hello.proto

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published