Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 530 Bytes

File metadata and controls

26 lines (20 loc) · 530 Bytes

Nodejs-RabbitMQ-Example

Nodejs + RabbitMQ Example

Run the following command to start RabbitMQ using Docker:
docker run --name rabbitmq -p 5672:5672 rabbitmq

Docker will create a RabbitMQ server from the RabbitMQ image with default port 5672.

Run the following command to install the dependencies:
npm install
Run the following command to start the publisher:
node publisher.js
Run the following command to start the consumer:
node consumer.js

Done!