Skip to content

Latest commit

 

History

History
47 lines (36 loc) · 1.14 KB

README.md

File metadata and controls

47 lines (36 loc) · 1.14 KB

SensorThings API

License Build Status Coverage Status

Node implementation of the OGC SensorThings API.

Build

npm install
npm run build

Usage

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'));

Running the tests

npm run test-watch

Running the example

npm run example