Here you can find JavaScript (Node) code examples from RabbitMQ tutorials.
To successfully use the examples you will need a running RabbitMQ server.
You need Node.js and amqp.node to run these tutorials.
To install amqp.node using npm:
npm install amqplib -g
You must fill in the values in .env before running the code:
USERNAME=
PASSWORD=
SERVER_ADRESS=
EXCHANGE=
ROUTING_KEY=
node src/emitter.js
node src/subscriber.js