Skip to content

eduardofx/nestjs-rabbitmq-workers

Repository files navigation

Usage


Install Packages

  • yarn install

Up RabbitMQ with docker-compose

  • docker-compose up -d

Start Application

  • yarn start:dev

Start Worker Consumer

  • yarn start: dev workers

Endpoint Sum [Sync]

curl --location 'http://localhost:3000/sum' \
--header 'Content-Type: application/json' \
--data '{
    "data": [9,10]
}'

Endpoint Multiply [Async]

curl --location 'http://localhost:3000/multiply_by_two' \
--header 'Content-Type: application/json' \
--data '{
    "data": 3
}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published