Skip to content

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.

Development / Configuration

  1. run yarn to install all dependencies.
  2. 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.
  3. run yarn dev CONFIG to create just a single build of the mqtt control map for the given config.
  4. run yarn build CONFIG to generate all files for production use.

Put the output files on your local webserver

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.

Clone this wiki locally