|
| 1 | +*Quick links :* |
| 2 | +*** |
| 3 | +[Home](/README.md) - [Part 1](/part1/README.md) - [Part 2](/part2/README.md) - [Part 3](/part3/README.md) - [**Resources**](/additionalResources/README.md) |
| 4 | +*** |
| 5 | +**Resources** - [Setup](PREREQUISITES_AND_SETUP.md) - [**IoT Starter App**](IOT_STARTER_APP.md) - [Headerless Setup](HEADERLESS_SETUP.md) - [Command line access](COMMAND_LINE_ACCESS.md) |
| 6 | +*** |
| 7 | + |
| 8 | +In part 3 you will be working on the IBM cloud. You will send sensor data aver the mesh network into the IBM Cloud. The IBM IoT Platform will receive the data over a secure connection, then an application deployed on the cloud will receive the data. |
| 9 | + |
| 10 | +In order to prepare for part 3 you need to deploy a starter application on the cloud and add in the IBM IoT platform service. Follow the instructions below to complete this. |
| 11 | + |
| 12 | +### Step 1 - Accessing the cloud and selecting an appropriate space |
| 13 | + |
| 14 | +[Login](https://cloud.ibm.com) to your cloud account, if not already logged in. |
| 15 | + |
| 16 | +If you haven't previously used any of the Cloud Foundry locations you will need to create a **space** to be able to work in the chosen location. To do this from the top menu select *Manage* -> *Account* -> *Cloud Foundry Orgs* then click on your mail address to configure your organisation. Click to **Add a space** then select the region and provide a name for the space. |
| 17 | + |
| 18 | +If you are working in a lite account you are restricted to a single Cloud Foundry space and are unable to create additional spaces in different regions unless you upgrade your account. |
| 19 | + |
| 20 | +Lite accounts have resource restrictions, so to be able to deploy the starter application you may need to delete any resources already deployed. |
| 21 | + |
| 22 | +### Step 2 - Deploy a Starter Application |
| 23 | + |
| 24 | +- open up the Catalog using the top menu, then select **Web and Applications** from the left menu |
| 25 | +- select the **Software** tab |
| 26 | +- select the **Node-RED App** |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | +- in the screen presented press the **Create app** button |
| 31 | +- in the Create app screen optionally enter an App name (or you can simple accept the name provided) and select a region to deploy the Cloudant NoSQL database to - ideally this should be the same region you have your Cloud Foundry space in. |
| 32 | +- press the **Create** button to create the App definition |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | +- wait until the Cloudant service has been deployed |
| 37 | +- press the **Create Service +** button, then select the Internet of Things section and press the **Next** button |
| 38 | +- select the Internet of Things Platform then press the **Next** button |
| 39 | +- choose the closest region, ensure the Lite pricing plan is selected then press Create to add the Internet of Things Platform to your application |
| 40 | +- press **Deploy you app** |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | +- ensure IBM Cloud Foundry is the deployment target (this is the only option for lite accounts) |
| 45 | +- press **New** to create an IBM Cloud API key, accept the defaults in the popup and press **OK** |
| 46 | +- select the Memory allocation per instance to 256 MB |
| 47 | +- ensure the host name is valid, if not modify it until any errors are cleared |
| 48 | +- select the region closest to you to deploy the toolchain |
| 49 | +- press **Create** to generate the toolchain for your application |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | +The Starter Application is now deploying by running the newly created toolchain. |
| 54 | + |
| 55 | +Please leave this to deploy - now is a good time to go for a break or move onto [part 1](../part1/README.md) |
| 56 | + |
| 57 | +### Step 3 - Check deployment status |
| 58 | + |
| 59 | +- open the main menu (Top left of web console UI) |
| 60 | +- select Resource list |
| 61 | +- select your application from the Cloud Foundry apps section to launch the application overview page |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | +On the overview page you should see: |
| 66 | + |
| 67 | +- the app is awake, which shows the deployment was successful and the application is running |
| 68 | +- the link to open the application |
| 69 | +- the connections to the Cloudant database and IoT platform services |
| 70 | +- link to access toolchain |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | +*** |
| 75 | +*Quick links :* |
| 76 | +*** |
| 77 | +**Resources** - [Setup](PREREQUISITES_AND_SETUP.md) - [**IoT Starter App**](IOT_STARTER_APP.md) - [Headerless Setup](HEADERLESS_SETUP.md) - [Command line access](COMMAND_LINE_ACCESS.md) |
| 78 | +*** |
| 79 | +[Home](/README.md) - [Part 1](/part1/README.md) - [Part 2](/part2/README.md) - [Part 3](/part3/README.md) - [**Resources**](/additionalResources/README.md) |
0 commit comments