obase
an easily extendable base for building webapp with express, mongo and passport
Last updated a year ago by aszs .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install obase 
SYNC missed versions from official npm registry.

OneCommons Base

An easily extendable base for building webapp with express, mongo and passport.

To Install

  1. run npm install after cloning repo (use npm ls to verify dependencies)
  2. 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.js

To create a new app

git clone https://github.com/onecommons/base-example.git`
cd base-example
npm install
edit app.js

Tests

Run unit tests:

NODE_ENV=test ./node_modules/.bin/mocha --compilers js:babel/register --reporter=list

Code coverage:

NODE_ENV=test istanbul cover ./node_modules/.bin/_mocha --reporter=list

Debugging

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

Current Tags

  • 0.0.13                                ...           latest (a year ago)

11 Versions

  • 0.0.13                                ...           a year ago
  • 0.0.12                                ...           a year ago
  • 0.0.11                                ...           a year ago
  • 0.0.10                                ...           a year ago
  • 0.0.9                                ...           2 years ago
  • 0.0.8                                ...           2 years ago
  • 0.0.7                                ...           2 years ago
  • 0.0.6                                ...           2 years ago
  • 0.0.5                                ...           2 years ago
  • 0.0.4                                ...           2 years ago
  • 0.0.3                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 22
Dependencies (29)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |