README
buglabs / pro.shared
Purpose
Pro.Shared provides interfaces to underlying storage and shared libraries between Bug's products. Current pieces implemented by this library include the mongodb models.
Use (development)
Installation
- Clone this repository to your rig.
- Navigate to this directory. Run
npm installthennpm link - Navigate to each of the other projects that will use this shared lib
- Run
npm link bug-sharedand thennpm install
Use
var bugShared = require('bug-shared')- Establish mongoose DB connection:
app.db = mongoose.createConnection(config.mongodb.uri, config.mongodb.options); bugShared.models(app, mongoose)- From there,
app.db.models.*is available.
Use (production)
TBD