Node implementation of the OGC SensorThings API.
npm install
npm run build
const express = require('express');
const SensorThings = require('../dist/sensorthings'); // or require('sensorthings')
// if you installed it via npm
var app = express();
const config = {
db: {
host: 'localhost',
port: 5432,
name: 'sensorweb',
user: 'postgres',
pass: '12345678'
}
};
app.use('/', SensorThings(config));
app.listen(8080, () => console.log('Running on localhost:8080'));
npm run test-watch
npm run example