The Node.js Starter demonstrates a simple, reusable Node.js web application based on the Express framework.
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.
Use the "Deploy to Bluemix" button below, to deploy this app to Bluemix using IBM DevOps.
- Create a Bluemix Account.
Sign up for Bluemix, or use an existing account.
-
Download and install the Cloud-foundry CLI tool.
-
Clone the app to your local environment from your terminal using the following command:
git clone https://github.com/dahukanna/deployToBluemix.git
-
cd
into this newly created directory. -
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
.
- Connect to Bluemix in the command line tool and follow the prompts to log in:
$ cf api https://api.ng.bluemix.net
$ cf login
- Push the app to Bluemix.
$ cf push
You now have your own instance of the app running on Bluemix.
- Install Node.js
- Clone the app to your local environment from your terminal using the following command: -
git clone https://github.com/dahukanna/deployToBluemix.git
- cd into your local environment app directory
- Run
npm install
to install the app's dependencies - Run
npm start
to start the app - Access the running app in a browser at http://localhost:6001
IBM Bluemix
IBM Bluemix Documentation
IBM Bluemix Developers Community
IBM Watson Internet of Things
IBM Watson IoT Platform
IBM Watson IoT Platform Developers Community