bug-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.

Usage no npm install needed!

<script type="module">
  import bugShared from 'https://cdn.skypack.dev/bug-shared';
</script>

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 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