Nest framework TypeScript repository.
RabbitMQ is the most widely-deployed open-source and lightweight message broker which supports multiple messaging protocols.
With the docker-compose.yml file, we can easily spin up a RabbitMQ server with our customized definitions and configurations.
$ docker-compose up
or in new version of dockers use:
$ docker compose up
# in Docker
apt update
apt install wget
cd /opt/rabbitmq/plugins
wget https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.11.1/rabbitmq_delayed_message_exchange-3.11.1.ez
rabbitmq-plugins enable rabbitmq_delayed_message_exchange
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
This tuturial can grow thanks to NestJS users. If you'd like to join me, please send PR to complete.
- Author - sahand-zeynol