Set up environment
Assuming you are running homebrew up-to-date on a Mac, here is how you configure your dev environment
brew install mongodbbrew install nvmbrew install redis# Configure Dependencies brew services start mongodbnvm install v6.10.2nvm alias default v6.10.2npm install -g bowerredis-server &
Install
npm install --save ohm
Usage
create a new file server.js
and create a config file.
{ 'use strict'; const config = ; const Ohm = ; moduleexports = 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_SECRET
PARSE_PATH
: route for parse serverPARSE_DASHBOARD
: route for parse dashboardPARSE_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 useGHOST_CONFIG
: location of the ghost configSOCKETS
: location of the site's sockets routes
Dependencies:
For Full details see package.json