backside-mongo-store

0.0.3 • Public • Published

backside-mongo-store

A store for backside that uses mongo

Configuration

This store takes a few options:

new MongoStore(mongodbUri, [opts])

Where opts is:

{
  collection: "backside", // the name of the collection to use for backside
  privateCollection: "private" // the name of the collection for private data
}
// this same opts array is also passed to the mongo driver, so all those are available as well

Configuration via environment variables

This can also be configured via environemt variables

MONGODB_URL=mongodb://myhost/db
MONGODB_COLLECTION=collectionName
MONGODB_PRIV_COLLECTION=collectionNameForPrivateData

Package Sidebar

Install

npm i backside-mongo-store

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • addisonj
  • trevordixon