├── .babelrc ├── .cfignore ├── .eslintignore ├── .eslintrc ├── .github └── ISSUE_TEMPLATE.md ├── .gitignore ├── README.md ├── config ├── default.js ├── production.js └── test.js ├── manifest.yml ├── package.json ├── postman ├── Bluemix starter.postman_collection.json └── bluemix starter.postman_environment.json ├── src ├── app.js ├── bootstrap.js ├── common │ ├── loadRoutes.js │ └── logger.js ├── controllers │ └── TestController.js ├── routes.js └── services │ └── TestService.js ├── swagger.yaml ├── test-e2e ├── .eslintrc └── app.spec.js └── test ├── .eslintrc ├── services └── TestService.spec.js └── setup.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": ["es2015", "stage-0"], 3 | "plugins": ["transform-runtime"] 4 | } -------------------------------------------------------------------------------- /.cfignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage/** 2 | node_modules/** -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint-config-topcoder/nodejs-babel" 3 | } -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ### Description: 2 | 3 | ### Requirements: 4 | 5 | ### Setup & Reference: 6 | 7 | ### Submissions: 8 | - Ensure good test coverage on all modules 9 | - Upload documentation for how to run your submission 10 | - Upload all your source code as a zip for review 11 | - Winner will be required to submit a pull request with their winning code. 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ### Node template 2 | 3 | config/local.json 4 | 5 | # Logs 6 | logs 7 | *.log 8 | npm-debug.log* 9 | dist 10 | # Runtime data 11 | pids 12 | *.pid 13 | *.seed 14 | 15 | # Directory for instrumented libs generated by jscoverage/JSCover 16 | lib-cov 17 | 18 | # Coverage directory used by tools like istanbul 19 | coverage 20 | 21 | # nyc test coverage 22 | .nyc_output 23 | 24 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 25 | .grunt 26 | 27 | # node-waf configuration 28 | .lock-wscript 29 | 30 | # Compiled binary addons (http://nodejs.org/api/addons.html) 31 | build/Release 32 | 33 | # Dependency directories 34 | node_modules 35 | jspm_packages 36 | 37 | # Optional npm cache directory 38 | .npm 39 | 40 | # Optional REPL history 41 | .node_repl_history 42 | 43 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Blue mix starter 2 | 3 | ## Description 4 | A starter pack for nodejs with bluemix deployment. 5 | 6 | ## Requirements 7 | * node `^7.2.0` https://nodejs.org/en/ 8 | * npm `^3.10.0` 9 | 10 | ## Configuration 11 | 12 | |Name|Description| 13 | |----|-----------| 14 | |`PORT`| The port to listen| 15 | |`VERBOSE_LOGGING`| The flag if debug logging in enabled| 16 | 17 | 18 | ## Local deployment 19 | 20 | |`npm run