Norse Polytheistic Mythology
Join us to discuss the challenges, solutions and best practices for in-house JavaScript code sharing. Tuesday, 12/17 at 10am PT/1pm ET.Sign up here »

bedrock-session-mongodb

3.1.0 • Public • Published

bedrock-session-mongodb

A bedrock module that enables express session storage via MongoDB.

Requirements

  • npm v3+

Quick Examples

npm install bedrock-session-mongodb

Simply require the bedrock-session-mongodb module along with the bedrock-express module and then any express session information will be persisted via MongoDB.

var bedrock = require('bedrock');
 
// modules
require('bedrock-server');
require('bedrock-express');
require('bedrock-session-mongodb');
 
bedrock.events.on('bedrock-express.configure.routes', function(app) {
  app.get('/', function(req, res) {
    res.send('Hello World!');
  });
});
 
bedrock.start();

Configuration

For documentation on configuration, see config.js.

Install

npm i bedrock-session-mongodb

DownloadsWeekly Downloads

15

Version

3.1.0

License

none

Unpacked Size

10.3 kB

Total Files

6

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar