This sample application is included as a component in a set of Getting Started guides that step through the basics of developing a ready-for-production, end-to-end IoT prototype system with Watson IoT Platform.
Developers who are new to working with Watson IoT Platform can use the step-by-step processes in the Getting Started guides to develop and deploy a solution that demonstrates one or more Watson IoT Platform features.
For more information about the getting started guides, see the Watson IoT Platform documentation.
In your IBM Watson IoT Platform service, generate a new application API key.
Watson IoTP <wiotp-org-id>.internetofthings.ibmcloud.com/dashboard/#/apps/apikeys-v2
Set the application permissions to the lowest level it requires: Visualization Application. If you add more features to the application, you'll need to elevate it to a higher role.
Docs: https://bluemix.net/docs/services/IoT/platform_authorization.html#api-key
- Run
npm install -g @angular/cli
to install the Angular CLI - Run
npm install
- Create a file named basicConfig.json in the root folder of this repo with this content:
{
"org": "{{your_org_ID}}",
"apiKey": "{{your_API_key}}",
"apiToken": "{{your_API_token}}"
}
- Run
npm run build-run
to build the project and start the app. - Go to http://localhost:3000 on your browser
- Run
npm install -g @angular/cli
to install the Angular CLI - Run
npm install
- Create a file named basicConfig.json in the root folder of this repo with this content:
{
"org": "{{your_org_ID}}",
"apiKey": "{{your_API_key}}",
"apiToken": "{{your_API_token}}"
}
- Run
npm run push
to build the project and push using Cloud Foundry.
This project was generated with Angular CLI version 1.0.0-rc.1.
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 'app.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