- Install RabbitMQ using
brew install rabbitmq
in mac. - Start RabbitMQ using
brew services start rabbitmq
- Go to
http://localhost:15672/
and give idguest
and passwordguest
to log in - Create a directory and init npm and enable it using
npm init -y
- Install
express
andamqplib
usingnpm install express amqplib
- Also insall
body-parser
anddotebv
usingnpm install body-parser dotenv
- Run the
sender.js
to send andreceiver.js
to consume the message usingnode sender.js