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