-
Notifications
You must be signed in to change notification settings - Fork 4
Running the map
uwap edited this page Oct 8, 2020
·
1 revision
The mqtt-control-map uses web mqtt to directly connect to your mqtt broker. Once you've created your config in the config/
folder, this article should help you on how to run your map.
- run
yarn
to install all dependencies. - run
yarn watch CONFIG
to run a local build server that automatically builds your the mqtt control map for the given CONFIG everytime something changes. - run
yarn dev CONFIG
to create just a single build of the mqtt control map for the given config. - run
yarn build CONFIG
to generate all files for production use.
The mqtt control map produces html + javascript files, that you can simply put on your webserver to serve your map. The output files are located in the /dist
folder. As the names are hashed, it may be useful cleaning out your webservers folder every new builds of the map.