Mqtt listener and Web Socket for the view from a client
To build this application, you must have the following in the development environment:
- ActiveMQ on docker and you can used script installDockerActiveMQ.sh and script initDockerActiveMQ.sh for server start.
- MongoDB
- NodeJS> 7.0v
Install the necessary libraries:
npm install mqtt
npm install http
npm install websocket
npm install mongoose
#or you can use
sh npmInstall.sh
Start the application:
node main.js
To visualize what arrives in the topics and what is saved, you can open the client on a web browser.
clienteWeb/index.html