Add documentation for how to update http://mqtt-explorer.com

This commit is contained in:
Thomas Nordquist
2020-01-17 12:52:34 +01:00
parent fbad7afa79
commit f63e73ee0a

View File

@@ -41,25 +41,52 @@ The `app` directory contains all the rendering logic, the `backend` directory cu
To achieve a reliable product automated tests run regularly on travis. To achieve a reliable product automated tests run regularly on travis.
- Data model - Data model
- MQTT integration - MQTT integration
- UI-Tests (The demo is a recorded ui test) - UI-Tests (The demo is a recorded ui test)
## Run UI-tests ## Run UI-tests
A [mosquitto](https://mosquitto.org/) MQTT broker is required to run the ui-tests. A [mosquitto](https://mosquitto.org/) MQTT broker is required to run the ui-tests.
Run tests with Run tests with
```bash ```bash
# Run chromedriver in a separate terminal session # Run chromedriver in a separate terminal session
./node_modules/.bin/chromedriver --url-base=wd/hub --port=9515 --verbose ./node_modules/.bin/chromedriver --url-base=wd/hub --port=9515 --verbose
``` ```
Compile and execute tests Compile and execute tests
```bash ```bash
npm run build npm run build
node dist/src/spec/webdriverio.js node dist/src/spec/webdriverio.js
``` ```
## Write docs
```
git clone https://github.com/thomasnordquist/MQTT-Explorer.git mqtt-explorer-pages
cd mqtt-explorer-pages
git checkout gh-pages
bundle install
bundle exec jekyll serve --incremental
```
Readme file: `Readme.tpl.md`
Preview is available at
http://localhost:4000/Readme.tpl
## Update docs
```
npm install
./updateReadme.ts
```
The readme will be generated from the docs.
## License ## License
![CC-BY-ND 4.0](https://img.shields.io/badge/License-CC%20BY--ND%204.0-blue.svg) ![CC-BY-ND 4.0](https://img.shields.io/badge/License-CC%20BY--ND%204.0-blue.svg)