node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey ยป

prestful

npm install prestful

var mongoose = require('mongoose')
var cors = require('cors')
var express = require('express')
var bodyParser = require('body-parser')
var RestfulController = require('prestful').RestfulController
var Config = require('./models/Config')

var app = express()

mongoose.connect('mongodb://localhost:27017/datamap')

app.use(cors())

app.use(bodyParser.json())

app.use('/config',new RestfulController(Config).router)

app.listen(3000)