Using Dapr and NestJs the natural way - PUB/SUB

👉 To execute and customize the example project per your need shown in this post, here are the minimum requirements you need to install in your system:

Clone the demo repository

git clone https://github.com/zhoroh/testing_out_dapr.git

Go to root directory of testing_out_dapr

cd testing_out_dapr

Install node libraries

npm install

Build up a docker container

docker compose -d

Start the application

npm run start:dapr

Testing it out

curl -X POST localhost:3000/pubsub

Results

== APP == Received topic:my-topic message: { hello: 'world' }