Create an MQTT broker easily. With myBroker creating a broker on-premises or in the cloud just got simpler.
To make it work is very simple, first download or clone this repository:
git clone https://github.com/natandiasm/mybroker.git
Then go to the folder where the project is and run:
node install
And ready 🎉
If you don't want to use passwords at your broker, just run:
npm start
If you want your broker with a user. create the environment variables
USER_BROKER = username
If you want to enter a password, create:
PASS_BROKER = password
Then run
npm start
Or run at once:
USER_BROKER=youruser PASS_BROKER=yourpass node index.js
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.