Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i backside-mongo-store

Downloadsweekly downloads

0

version

0.0.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar