App skeleton original built using express --sessions --css less --ejs ocdemo
- run
npm install
after cloning repo (usenpm ls
to verify dependencies) - install mongodb: e.g. sudo brew install mongodb; sudo mkdir -p /data/db; sudo chown
id -u
/data/db sudo gem install sass
To run app, in two consoles run:
ulimit -n 1024 & sudo mongod
DEBUG=express:* node app.js
Run unit tests:
NODE_ENV=test ./node_modules/.bin/mocha --reporter=list
npm install -g node-inspector
debug app:
node-debug app.js
debug unit tests:
NODE_ENV=test ./node_modules/.bin/mocha --reporter=list --debug-brk
node-inspector