node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

bug-shared

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 install then npm link
  • Navigate to each of the other projects that will use this shared lib
  • Run npm link bug-shared and then npm 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