Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andre-ols/node-rmq-mqtt

This is a simple PoC to demonstrate how to use RabbitMQ with MQTT protocol in node.js.
https://github.com/andre-ols/node-rmq-mqtt

Last synced: 4 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:

```bash
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
```

2. Install dependencies:

```bash
yarn install
```

3. Run the producer:

```bash
yarn start:producer
```

4. Run the consumer:

```bash
yarn start:consumer
```

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.