express-mongo
v0.3.0
Published
RESTful API to mongodb documents for expressjs applications
Downloads
9
Readme
express-mongo
RESTful API to mongodb documents for expressjs applications
Sample usage
var express = require('express');
var bodyParser = require('body-parser');
var mongoskin = require('mongoskin');
var api = require('express-mongo');
var db = mongoskin.db('mongodb://@localhost:27017/docs', {safe:true});
var app = express();
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));
// register RESTful API in your express application
app.use(api({db: db}));
app.listen(8080);