The management center for Eclipse Mosquitto. See the official documentation for additional details.
Either go to official documentation page and follow steps there or clone this repository and then:
-
Intstall
Dockeranddocker-compose -
Intstall
yarnpackage manager -
Run the Mosquitto broker:
-
Create
mosquittodirectory -
Go inside this directory, create
configanddatadirectories -
Go inside
configdirectory and create config filemosquitto.conf -
You can find an example of such file here. Be sure to uncomment or add the following lines to this file:
listener 1883 allow_anonymous true -
Inside the
mosquittodirectory create adocker-compose.yamlfile with the following content:version: '3.8' services: mosquitto: image: eclipse-mosquitto:2 ports: - 127.0.0.1:1883:1883 - 127.0.0.1:8080:8080 - 8883:8883 volumes: - ./mosquitto/config:/mosquitto/config - ./mosquitto/data:/mosquitto/data networks: - mosquitto networks: mosquitto: name: mosquitto driver: bridge -
Inside
mosquittodirectory run the following command to start the broker:docker-compose up
-
-
Now, when Mosquitto broker is installed, go to the root directory of the Management Center and run:
yarn install -
Go to the
/frontendfolder and run:yarn run build-without-base-path -
Set the following environmental variables (Note that
exportcommand works for Unix. For Windows useset):export CEDALO_MC_BROKER_ID="mosquitto" \ export CEDALO_MC_BROKER_NAME="Mosquitto" \ export CEDALO_MC_BROKER_URL="mqtt://localhost:1883" \ export CEDALO_MC_BROKER_USERNAME="" \ export CEDALO_MC_BROKER_PASSWORD="" \ export CEDALO_MC_USERNAME="cedalo" \ export CEDALO_MC_PASSWORD="tests" \ export CEDALO_MC_PROXY_HOST="localhost" \ -
Go to the
backenddirectory and run:yarn start -
Go to
http://localhost:8088to start working with the Management Center for Eclipse Mosquitto