Creates connection, database and all necessary collections, indexes and models used by Plott.
Creates connection to MongoDB database.
| parameter | type | description |
|---|---|---|
conn |
String | MongoDB connection uri "mongodb:///". Default ('mongodb://localhost/') |
db |
String | database name. Default ('Plott') |
plott.mongo();
//=mongooseReturns Object, mongoose
Requires nodejs.
$ npm install plott-mongo$ npm test