Skip to content

dahukanna/dev-deployToBluemix-NodeJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Starter Overview

The Node.js Starter demonstrates a simple, reusable Node.js web application based on the Express framework.

Deploy the app on Bluemix

You can deploy your own instance to Bluemix. To do this, you can either use the Deploy to Bluemix button for an automated deployment or follow the steps below to create and deploy your app manually.

Using the Deploy to Bluemix button.

Use the "Deploy to Bluemix" button below, to deploy this app to Bluemix using IBM DevOps.

Deploy to Bluemix

Manually deploying to Bluemix.

  1. Create a Bluemix Account.

Sign up for Bluemix, or use an existing account.

  1. Download and install the Cloud-foundry CLI tool.

  2. Clone the app to your local environment from your terminal using the following command:

git clone https://github.com/dahukanna/deployToBluemix.git
  1. cd into this newly created directory.

  2. Edit the manifest.yml file and change the <name> and <host> to something unique.

applications:
- path: .
  memory: 128M
  instances: 1
  domain: mybluemix.net
  name: node-js-1234
# host: node-js-1234
  disk_quota: 256M

The host you use will determinate your application URL initially, for example, <host>.mybluemix.net.

  1. Connect to Bluemix in the command line tool and follow the prompts to log in:
$ cf api https://api.ng.bluemix.net
$ cf login
  1. Push the app to Bluemix.
$ cf push

You now have your own instance of the app running on Bluemix.

Run the app locally

  1. Install Node.js
  2. Clone the app to your local environment from your terminal using the following command: - git clone https://github.com/dahukanna/deployToBluemix.git
  3. cd into your local environment app directory
  4. Run npm install to install the app's dependencies
  5. Run npm start to start the app
  6. Access the running app in a browser at http://localhost:6001

Useful links

IBM Bluemix
IBM Bluemix Documentation
IBM Bluemix Developers Community
IBM Watson Internet of Things
IBM Watson IoT Platform
IBM Watson IoT Platform Developers Community

About

Deploy to Bluemix methods

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published