/node-rmq-mqtt

This is a simple PoC to demonstrate how to use RabbitMQ with MQTT protocol in node.js.

Primary LanguageErlangMIT LicenseMIT

Simple PoC with RabbitMQ using MQTT protocol

This is a simple PoC to demonstrate how to use RabbitMQ with MQTT protocol in node.js.

Requirements

  • Docker
  • Node.js
  • Yarn

How to run

  1. Run RabbitMQ with MQTT plugin:
docker build -t rmq-mqtt .

docker run -it -p 15672:15672 -p 5672:5672 -p 1883:1883 -v $PWD/docker/var/lib/rabbitmq:/var/lib/rabbitmq rmq-mqtt
  1. Install dependencies:
yarn install
  1. Run the producer:
yarn start:producer
  1. Run the consumer:
yarn start:consumer

License

This project is licensed under the MIT License. See the LICENSE file for details.