Skip to content

Bundle with services to develop applications with MongoDB

License

Notifications You must be signed in to change notification settings

dragonnodejs/mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DragonNode.js MongoDB

Bundle with services to develop applications with MongoDB

  • Initialize db service with the MongoDB connection and the toObjectID converter
  • Bind collections with indexes for the db service

Installation

  • Run npm install dragonnodejs-mongodb --save
  • Add the bundle to the "app.js":
let modules = [
    [require('dragonnodejs-mongodb'), [
        ['db', {
            uri: process.env.MONGOLAB_URI || 'mongodb://127.0.0.1/app?auto_reconnect=true',
            options: { safe: true }
        }],
        ['collections', [
            ['examples', [
                [{ example: 1 }, { unique: true }]
            ]]
        ]]
    ]]
];

About

Bundle with services to develop applications with MongoDB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published