IoT reference sample for Climate Control
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/ibm-watson-iot/iot-climate-control-sample.git
-
cd
into this newly created directory. -
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
.
- 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.
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.
Deployment tracking can be disabled by removing the require("cf-deployment-tracker-client").track(); line from the end of the 'main.js' file.
IBM Bluemix
IBM Bluemix Documentation
IBM Bluemix Developers Community
IBM Watson Internet of Things
IBM Watson IoT Platform
IBM Watson IoT Platform Developers Community