|
1 |
| -## NYCTraffic Starter Application for Bluemix Streaming Analytics |
2 |
| -This sample demonstrates how to use the Streaming Analytics service in conjunction with a Bluemix application. |
3 |
| -The project contains both a Bluemix application and a Streams application. |
| 1 | +## NYCTraffic Starter Application for IBM Cloud Streaming Analytics |
| 2 | +This sample demonstrates how to use the Streaming Analytics service in conjunction with a IBM Cloud application. |
| 3 | +The project contains both a IBM Cloud application and a Streams application. |
4 | 4 |
|
5 |
| -#### Bluemix Application |
6 |
| -The Bluemix application is written in Java using the Liberty for Java runtime in Bluemix. It uses the Streaming Analytics REST API to submit an analytic application to Streams and displays results on a web page. You can modify the application code and push your changes back to the Bluemix environment. |
| 5 | +#### IBM Cloud Application |
| 6 | +The IBM Cloud application is written in Java using the Liberty for Java runtime in IBM Cloud. It uses the Streaming Analytics REST API to submit an analytic application to Streams and displays results on a web page. You can modify the application code and push your changes back to the IBM Cloud environment. |
7 | 7 |
|
8 | 8 | #### Streams Application
|
9 | 9 | The Streams application analyzes a Stream of New York City traffic data and sends its results Liberty for Java application. A pre-compiled copy of the Streams application is provided in `NYCTrafficSample/WebContent/public/NYCTraffic.sab`, and the source code for the Streams application is in the same subfolder in `NYCTraffic.spl`.
|
10 | 10 |
|
11 | 11 | #### Getting ready to run the sample
|
12 | 12 |
|
13 | 13 | To run the NYCTraffic sample, you will need to perform the following actions if you have not already done so:
|
14 |
| -1. Sign up for [Bluemix](https://ace.ng.bluemix.net/) and log in. |
| 14 | +1. Sign up for [IBM Cloud](https://ace.ng.bluemix.net/) and log in. |
15 | 15 |
|
16 |
| -2. [Install the Bluemix command-line tool](https://console.bluemix.net/docs/cli/index.html#cli). |
| 16 | +2. [Install the IBM Cloud command-line tool](https://console.bluemix.net/docs/cli/index.html#cli). |
17 | 17 |
|
18 |
| -3. Create an application in the Bluemix web portal using the **Liberty for Java** runtime. Remember the name you give your application, you will need it later on. |
| 18 | +3. Create an application in the IBM Cloud web portal using the **Liberty for Java** runtime. Remember the name you give your application, you will need it later on. |
19 | 19 |
|
20 |
| -4. Create a Streaming Analytics service in the Bluemix web portal |
| 20 | +4. Create a Streaming Analytics service in the IBM Cloud web portal |
21 | 21 |
|
22 | 22 | 5. Connect your application to your Streaming Analytics instance using the "Connect existing" button on your application's Overview page.
|
23 | 23 |
|
24 | 24 |
|
25 | 25 |
|
26 |
| -#### Pushing the NYCTraffic starter application to Bluemix |
| 26 | +#### Pushing the NYCTraffic starter application to IBM Cloud |
27 | 27 |
|
28 |
| -After you perform the steps above, you are ready to download and push the starter application to Bluemix: |
| 28 | +After you perform the steps above, you are ready to download and push the starter application to IBM Cloud: |
29 | 29 |
|
30 | 30 |
|
31 | 31 | 1. Download the [NYCTraffic.zip](https://streams-github-samples.mybluemix.net/?get=QuickStart/NYCTraffic) file.
|
32 | 32 |
|
33 | 33 | 2. After the download completes, extract the .zip file.
|
34 | 34 |
|
35 |
| -3. Rename the directory NYCTrafficSample in the extracted files to match the name you gave your application in Bluemix earlier. |
| 35 | +3. Rename the directory NYCTrafficSample in the extracted files to match the name you gave your application in IBM Cloud earlier. |
36 | 36 |
|
37 | 37 | 4. On the command line, `cd` to the renamed directory. For example:
|
38 | 38 | cd myapp
|
39 | 39 |
|
40 |
| -5. Connect to Bluemix: |
| 40 | +5. Connect to IBM Cloud: |
41 | 41 |
|
42 | 42 | cf api https://api.ng.bluemix.net
|
43 | 43 |
|
44 |
| -6. Log into Bluemix and set your target org when prompted: |
| 44 | +6. Log into IBM Cloud and set your target org when prompted: |
45 | 45 |
|
46 | 46 | cf login
|
47 | 47 |
|
48 | 48 | 7. Deploy your app. For example:
|
49 | 49 |
|
50 | 50 | cf push myapp
|
51 | 51 |
|
52 |
| -8. Access your app by clicking on the route displayed near the top of your application's Overview page in Bluemix. |
| 52 | +8. Access your app by clicking on the route displayed near the top of your application's Overview page in IBM Cloud. |
0 commit comments