chokri / node-rabbitmq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

📘 RabbitMQ example with Node JS

This example will send and receive message fron Rabbit MQ's Queue and consume it in the same folder.

To run the example just run docker-compose up --build and then, use your REST API client to send curl to message like this:

curl -X POST  http://localhost:3000/message \
    -H 'Content-Type: application/json' \
    -d '{"message":"hello from Terminal"}'

About


Languages

Language:JavaScript 71.9%Language:Shell 19.7%Language:Dockerfile 8.4%