This is a Yeoman generator to quick scaffold a RESTful API using expresss, cluter-service, mocha, chai, sinon, and istanbul. The structure generated follows the MVC controller/service/repository pattern.
http://yeoman.io/learning/index.html
Python 2.7.x: https://www.python.org/downloads/
> npm install -g generator-express-rest-api
> yo express-rest-api
> yo express-rest-api:controller
> yo express-rest-api:service
> yo express-rest-api:repository
// installs everything that is required to run your new application
> npm run install-local
// runs application
> npm start
// runs application in debug mode
> npm run debug
// runs mocha tests
> npm test
// runs istanbul code coverage
> npm run test-coverage
package.json
server.js
\app
\..\config
\..\settings
\..\..\settings-config.js
\..\route.config.json
\..\route-config.js
\..\worker-config.js
\..\controllers
\..\..\v1
\..\..\..\users
\..\..\..\..\users-controller.js
\..\services
\..\..\users
\..\..\..\user-service.js
\..\repositories
\..\..\users
\..\..\..\user-repository.js
\test
\..\spec
\..\mocha.opts
\..\tests.initialize.js
\..\..\controllers
\..\..\..\v1
\..\..\..\..\users
\..\..\..\..\..\users-controller.tests.js
\..\..\services
\..\..\..\users
\..\..\..\..\user-service.tests.js
\..\..\repositories
\..\..\..\users
\..\..\..\..\user-repository.tests.js