Just playing around 'amqp' node js library of RabbitMQ
To run RabbitMQ server, first you have to install Erlang. Download Erlng from here.
One of the most popular open source message broker. It supports multiple messaging protocols. For download and installation, please follow the link here.
You need Node.js and amqp.node to run these codes.
To install amqp.node
using npm:
npm install amqplib -g