ohm
Node.js Session Manager
Last updated 4 months ago by cdrake757 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ohm 
SYNC missed versions from official npm registry.

MIT Licence npm version NSP Status dependencies Build Status StackShare Coverage Status FOSSA Status

Set up environment

Assuming you are running homebrew up-to-date on a Mac, here is how you configure your dev environment

brew install mongodb
brew install nvm
brew install redis
# Configure Dependencies
brew services start mongodb
nvm install v6.10.2
nvm alias default v6.10.2
npm install -g bower
redis-server &

Install

npm install --save ohm

Usage

create a new file server.js and create a config file.

(function() {
  'use strict';

  const config        = require('./config.js');
  const Ohm           = require('ohm');

  module.exports = new Ohm(config);
}());
required params
  • env: environment variable
  • host: hostname
  • port: port
  • MONGO_DB: Mongodb database name
  • VIEWS_DIR: location of the pug views directory
  • ROUTES: location of the site's regular routes
  • SESSION_KEY: the key used for the cookie
  • SOCKETIO_SESSION_SECRET
  • PARSE_PATH: route for parse server
  • PARSE_DASHBOARD: route for parse dashboard
  • PARSE_APPLICATION_ID
  • PARSE_JAVASCRIPT_KEY
  • PARSE_MASTER_KEY
optional params:
  • MONGO_URI: mongdb url (e.g. mongodb://MONGO_HOST:MONGO_PORT)
  • MONGO_PORT: port for mongoDB (default localhost)
  • MONGO_HOST: host for mongoDB (default 27017)
  • REDIS_PORT: port for redis (default 6379)
  • REDIS_HOST: host for redis (default localhost)
  • GHOST_PATH: the path that ghost CMS will use
  • GHOST_CONFIG: location of the ghost config
  • SOCKETS: location of the site's sockets routes

Dependencies:

For Full details see package.json

License

FOSSA Status

Current Tags

  • 0.10.4                                ...           latest (4 months ago)

28 Versions

  • 0.10.4                                ...           4 months ago
  • 0.10.3                                ...           5 months ago
  • 0.10.2                                ...           6 months ago
  • 0.10.1                                ...           9 months ago
  • 0.10.0                                ...           9 months ago
  • 0.9.1                                ...           a year ago
  • 0.9.0                                ...           a year ago
  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.1.14                                ...           2 years ago
  • 0.1.13                                ...           2 years ago
  • 0.1.12                                ...           2 years ago
  • 0.1.11                                ...           2 years ago
  • 0.1.10                                ...           2 years ago
  • 0.1.9                                ...           2 years ago
  • 0.1.8                                ...           2 years ago
  • 0.1.7                                ...           2 years ago
  • 0.1.6                                ...           2 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 1.1.1                                ...           5 years ago
  • 0.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 29
This Month 30
Last Day 29
Last Week 1
Last Month 1
Dependencies (22)
Dev Dependencies (6)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |