bug-shared

0.0.21 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i bug-shared

Weekly Downloads

0

Version

0.0.21

License

none

Last publish

Collaborators

  • awolverton