Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

MichaelKohler/health-dashboard

Repository files navigation

health-dashboard

Some health dashboard.. or just something so I can play around..

Prerequisites

  • Docker and docker-compose
  • Node.js

Running it locally

First you need to install dependencies:

$ npm ci

Start MariaDB instance

$ docker-compose up

Start backend server

Copy the MQTT config example and adjust it to your use case. If you don't want MQTT functionality, do not copy the config.

$ cp server/config/mqtt/mqtt-config-example.js server/config/mqtt/mqtt-config.js

Then you can start the server:

$ npm run start:server

Adding seed data

$ cd server
$ npm run seed

Start frontend

$ npm run start:web

MQTT Config

Topic Key is the mqtt topic name.

Topic Properties:

  • action: action to call on message (see below for values)
  • useValue: (optional) boolean value to indicate whether to use the message's value for the action

Possible values for action:

  • ADD_CIGARETTE
  • ADD_STAIRS

About

Health Dashboard - mostly a playground for me

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages