Metis, Server
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
models
.gitignore
.nvmrc
Dokumentation.md
README.md
fixtures.js
index.js
package.json

README.md

metis-server

The server to work with the metis-app

Project setup

Install mongodb and start it on port 27017 (which is mongos default)

# starting mongo

mongod
# installing dependencies

npm install 

Installing dummy data

To add dummy data to your empty mongodb, run:

node fixtures

This will add some demo data to your database.

Starting the server

The server is running on localhost:8080

npm run server

Using the API

The server uses mongoose to provide a REST API.

Following models are available.

SensorData

Example call:

http://localhost:8080/api/v1/SensorData