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