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
Docker
anddocker-compose
-
Intstall
yarn
package manager -
Run the Mosquitto broker:
-
Create
mosquitto
directory -
Go inside this directory, create
config
anddata
directories -
Go inside
config
directory 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
mosquitto
directory create adocker-compose.yaml
file 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
mosquitto
directory 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
/frontend
folder and run:yarn run build-without-base-path
-
Set the following environmental variables (Note that
export
command 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
backend
directory and run:yarn start
-
Go to
http://localhost:8088
to start working with the Management Center for Eclipse Mosquitto