0.10.4 • Published 7 years ago
ohm v0.10.4
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 ohmUsage
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 variablehost: hostnameport: portMONGO_DB: Mongodb database nameVIEWS_DIR: location of the pug views directoryROUTES: location of the site's regular routesSESSION_KEY: the key used for the cookieSOCKETIO_SESSION_SECRETPARSE_PATH: route for parse serverPARSE_DASHBOARD: route for parse dashboardPARSE_APPLICATION_IDPARSE_JAVASCRIPT_KEYPARSE_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 useGHOST_CONFIG: location of the ghost configSOCKETS: location of the site's sockets routes
Dependencies:
For Full details see package.json
License
0.10.4
7 years ago
0.10.3
7 years ago
0.10.2
7 years ago
0.10.1
8 years ago
0.10.0
8 years ago
0.9.1
8 years ago
0.9.0
8 years ago
1.0.6
8 years ago
1.0.5
8 years ago
1.0.4
8 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago
0.1.14
9 years ago
0.1.13
9 years ago
0.1.12
9 years ago
0.1.11
9 years ago
0.1.10
9 years ago
0.1.9
9 years ago
0.1.8
9 years ago
0.1.7
9 years ago
0.1.6
9 years ago
0.1.3
11 years ago
0.1.2
11 years ago
0.1.1
11 years ago
1.1.1
11 years ago
0.0.1
11 years ago
