- Node v12 or higher
- Yarn
- Docker
- Docker Compose
$ yarn
$ yarn dev:up
# watch mode
$ yarn start:dev
# production mode
$ yarn start
Play and Stop the buzzer
$ mosquitto_pub -h localhost -t "alert/buzzer" -m "ON" -p 1883
$ mosquitto_pub -h localhost -t "alert/buzzer" -m "OFF" -p 1883
Change semaphore color
$ mosquitto_pub -h localhost -t "alert/semaphore" -m "RED" -p 1883
$ mosquitto_pub -h localhost -t "alert/semaphore" -m "YELLOW" -p 1883
$ mosquitto_pub -h localhost -t "alert/semaphore" -m "GREEN" -p 1883