Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

TampereHacklab/hacklab-sentinel

Repository files navigation

README

Technology: javascript/node.js express framework SQLite/sequelize mqtt

After cloning repository, run

npm update

which will download everything needed. Then copy db.sqlite from test_db to root folder.

Then run

NODE_ENV=development npm start

Or install nodemon with following command(does need sudo on Linux)

npm install -g nodemon

After that you can use following command to run hacklab sentinel, in a way that it will automatically restart server if files are changed

./start.sh

Of if you are running Windows, you can use

start.bat

Then point your browser to http://localhost:3000

If using Mosquitto MQTT broker, make sure that version is at least 1.4.12. Currently Mosquitto MQTT broker version in Ubuntu repositories is 1.4.10 which cannot handle MQTT messages trough websockets fast enough.

https://nyarlathotep.dy.fi/sentinel/realtime should be accessible for testing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published