0.0.1 • Published 9 years ago

plott-mongo v0.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

plott-mongo

build status

Creates connection, database and all necessary collections, indexes and models used by Plott.

plott.mongo(conn, db)

Creates connection to MongoDB database.

Parameters

parametertypedescription
connStringMongoDB connection uri "mongodb:///". Default ('mongodb://localhost/')
dbStringdatabase name. Default ('Plott')

Example

plott.mongo();

//=mongoose

Returns Object, mongoose

Installation

Requires nodejs.

$ npm install plott-mongo

Tests

$ npm test