/iot-climate-control-sample

IoT reference sample for Climate Control

Primary LanguageHTMLEclipse Public License 1.0EPL-1.0

IoT Climate Control Sample

IoT reference sample for Climate Control

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/ibm-watson-iot/iot-climate-control-sample.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: 768M
  instances: 1
  domain: mybluemix.net
  name: node-js-1234
# host: node-js-1234
  disk_quota: 1024M

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.

Privacy notice

This web application includes code to track deployments to IBM Bluemix and other Cloud Foundry platforms. The following information is sent to a Deployment Tracker service on each deployment:

  • Application Name (application_name)
  • Space ID (space_id)
  • Application Version (application_version)
  • Application URIs (`application_uris)``

This data is collected from the VCAP_APPLICATION environment variable in IBM Bluemix and other Cloud Foundry platforms. This data is used by IBM to track metrics around deployments of sample applications to IBM Bluemix to measure the usefulness of our examples, so that we can continuously improve the content we offer to you. Only deployments of sample applications that include code to ping the Deployment Tracker service will be tracked.

Disabling deployment tracking

Deployment tracking can be disabled by removing the require("cf-deployment-tracker-client").track(); line from the end of the 'main.js' file.

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