Sensors API
This webapp is a http server running to receive data from sensors and saving it to a database.
Setup
sensors-api
needs a running PostgreSQL runnung. See database/create_db.sql
in this repository for definitions of the required tables.
Clone from GitHub
$ git clone https://github.com/ladekjaer/sensors-api.git
Create and edit the .env
$ cd sensors-api
$ cp .env.example .env
$ vi .env
Now simply run it with
$ node app.js