/nestjs-ping-pong-services

NestJS microservices with gRPC transport & dockerized NestJS

Primary LanguageTypeScript

Running the dockerized app

# dockerized ping-service => run in cmd from folder 'ping-service'
$ npm run docker:up
# dockerized pong-service => run in other cmd from folder 'pong-service'
$ npm run docker:up

Running the app locally

# ping-service => run in cmd from folder 'ping-service'
$ npm i && npm run nest:start
# pong-service => run in other cmd from folder 'pong-service'
$ npm i && npm run nest:start

To start exchange

# from ping-service
$ curl -X POST -d 'repeats=10' http://localhost:3007/start
# from pong-service
$ curl -X POST -d 'repeats=10' http://localhost:3005/start