obase
v0.0.13
Published
an easily extendable base for building webapp with express, mongo and passport
Readme
OneCommons Base
An easily extendable base for building webapp with express, mongo and passport.
To Install
- run
npm installafter cloning repo (usenpm lsto verify dependencies) - install mongodb: e.g. sudo brew install mongodb; sudo mkdir -p /data/db; sudo chown
id -u/data/db
To Run
To run app, in two consoles run:
ulimit -n 1024 & sudo mongod
DEBUG=express:* node index.jsTo create a new app
git clone https://github.com/onecommons/base-example.git`
cd base-example
npm install
edit app.jsTests
Run unit tests:
NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel/register --reporter=listCode coverage:
NODE_ENV=test istanbul cover ./node_modules/.bin/_mocha --reporter=listDebugging
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 -t 999999
node-inspector