Nutty Professor Movie

    express-mongo

    0.3.0 • Public • Published

    express-mongo

    build status package version package downloads

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

    Keywords

    none

    Install

    npm i express-mongo

    DownloadsWeekly Downloads

    5

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • sergeyt