anytv-node-mongo
Our version of mongoskin that makes connecting to mongo simpler. Especially made for our awesome expressjs boilerplate.
This module uses the popular mongoskin.
Install
npm install anytv-node-mongo --save
Features
- Simpler connection with
mongo.open(config)
Usage
Opening a connection
On your index.js / server.js / app.js, register your database using a key.
; const config = host: 'localhost' user: 'root' password: '' database: test; mongo ;
Documentation
Code documentation can be found at (https://doc.esdoc.org/github.com/anyTV/anytv-node-mongo/)[https://doc.esdoc.org/github.com/anyTV/anytv-node-mongo/].
Contributing
Install the tools needed:
npm install babel -gnpm install esdoc -gnpm install mocha -gnpm install --dev
To compile the ES6 source code to ES5:
babel src --watch --out-dir lib
To generate the docs:
npm run docs
Running test
npm test
Code coverage
npm run coverage
Then open coverage/lcov-report/index.html.
License
MIT