var express = require('express');
var warehouse = require('warehousejs');
var NeBackend = require('warehousejs/backend/nedb');

var app = express();
var store = new NeBackend().objectStore('entities', {filename: 'data.nedb'});

warehouse.applyRoutes(app, store);

app.listen(3000);