topcoderinc/Topcoder-StarterPack_BluemixNode

Name: Topcoder-StarterPack_BluemixNode

Owner: topcoder

Description: Quick start boilerplate for a Node API Deployable to Bluemix

Created: 2016-12-19 19:32:03.0

Updated: 2018-01-19 21:27:33.0

Pushed: 2017-07-08 17:50:53.0

Homepage:

Size: 10

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Blue mix starter
Description

A starter pack for nodejs with bluemix deployment.

Requirements
Configuration

|Name|Description| |—-|———–| |PORT| The port to listen| |VERBOSE_LOGGING| The flag if debug logging in enabled|

Local deployment

|npm run <script>|Description| |——————|———–| |start|Serves the app in prod mode. It will override config with config/production.js| |dev|Same as npm start, but enables nodemon for the server as well.| |lint|Lint all .js files.| |lint:fix|Lint and fix all .js files. Read more on this.| |spec|Run unit tests| |spec:watch|Run unit tests in watch mode| |e2e|Run e2e tests| |e2e:watch|Run e2e tests in watch mode| |coverage|Run unit tests and verify coverage| |check-coverage|Verify coverage only| |test|Run lint, tests and checks coverage|

Bluemix deployment
  1. go to https://console.eu-gb.bluemix.net
  2. click Create app
  3. pick SDK for Node.js
  4. pick any free App name and click Create
  5. Click on the app and go to tab Getting started
  6. Download the Starter Code from Bluemix by clicking DOWNLOAD STARTER CODE
  7. Unpack this starter code to a different location, and only copy the manifest.yml to your project directory
  8. If you copied manifest.yml to your project directory, you can just run cf push for deployment. If you didn't copy over the manifest.yml, you'll have to tell cf push <appnamehere>
Testing

Import postman/Bluemix starter.postman_collection.json collection and postman/bluemix starter.postman_environment.json environment.

Live demo http://sky-bluemix-starter.eu-gb.mybluemix.net/api/test


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.