You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-24Lines changed: 12 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ Unless required by applicable law or agreed to in writing, software distributed
19
19
20
20
#### • Download IBM Bluemix Plug-in ####
21
21
22
-
You will also need to download the Cloud Foundry plug-in for Eclipse. To do this, go to Eclipse and follow the instructions below:
22
+
You will also need to download the IBM Bluemix plug-in for Eclipse. To do this, go to Eclipse and follow the instructions below:
23
23
24
24
1. Click: Help > Eclipse Marketplace...
25
25
2. Search: "Bluemix"
@@ -32,9 +32,7 @@ You will also need to download the Cloud Foundry plug-in for Eclipse. To do thi
32
32
33
33
Next, you will need to import the project into [**Eclipse**](https://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/keplersr2). Recommendation is to use the Eclipse IDE for Java EE Developers.
34
34
35
-
There are two ways you can get the source into Eclipse:
36
-
37
-
Option A. Import the WAR File (Preferred)
35
+
#### Import the WAR File ####
38
36
1. Navigate to https://github.com/ibmjstart/bluemix-java-sample-twitter-influence-app/releases
39
37
2. Click the green button labeled "twitter_influence_analyzer-1.2.war" and that will download the WAR file.
40
38
3. Open Eclipse
@@ -43,32 +41,21 @@ Option A. Import the WAR File (Preferred)
43
41
6. Select the war file from where it was downloaded. Ensure that `Target Runtime` is targeting IBM Bluemix.
44
42
7. Click `Next` and then `Finish` and the project should be imported into Eclipse
45
43
46
-
-OR-
47
-
48
-
Option B. Import the Eclipse project by following these instructions: (Only if you want to modify the source code.)
49
-
50
-
1. Open Eclipse
51
-
2. Select File->Import
52
-
3. Under the header labeled "Git", click "Projects from Git" and click `Next`
53
-
4. Select `Clone URI` and click `Next`
54
-
5. Copy paste the clone URL into the next page. Hit `Next`
55
-
56
-

57
-
6. Select the Branch to clone (you should only need Master). Click `Next`
58
-
7. Name the destination directory. click `Next`
59
-
8. Check `Import Existing Projects` and click `Next`
60
-
9. Check the project, and click `Finish`
61
-
62
44
### Step 3. Acquiring External and Public APIs ###
63
45
64
46
**Your app will not work if you do not add your Twitter API keys and access Tokens to your environment variable.**
65
47
66
-
This app uses some external APIs. You need to register the app with Twitter and Klout to get the keys and tokens.
48
+
This app uses some external APIs. You need to register the app with Twitter to get the keys and tokens.
67
49
68
50
#### • Twitter v1.1 API ####
69
51
70
52
To access the Twitter API you need the consumer keys and access tokens, so you must register the app with Twitter. You can register your app [here](https://dev.twitter.com/).
71
53
54
+
When you set up your twitter application settings, it will ask for the fully-qualified URL to your website. This should match, exactly, the URL you plan to use for your bluemix app.
55
+
For example, if your Bluemix app will be located at `http://jstart-tia.mybluemix.net`, then the `Website` text box under Create an Application should read that exact URL. You will have to match this
56
+
to the subdomain that you give when your app is deployed.
57
+
58
+
72
59
[More information on how to register the app with Twitter](registerTwitter.md)
73
60
74
61
#### • Google Maps v3 API ####
@@ -97,7 +84,8 @@ Make sure you are in the Java EE [perspective](http://help.eclipse.org/juno/inde
97
84
4. Click: `Finish`
98
85
5. Enter a Name for your app and select: `Next`
99
86
6. Enter THE SAME subdomain that you used to register with Twitter. (e.g. `https://`**`myTwitterApp`**`.mybluemix.net`) Click `Next`
100
-
7. (Optional) Bind the Cloudant NoSQLDB service. If it is not already created, select the icon in the top right. (Refer to Option B of Creating a Cloudant Service for how to search and create the service.) Hit `Next`
87
+
7. Create and bind the Cloudant NoSQLDB service. If it is not already created, select the icon in the top right. (Refer to Option B of [Creating a Cloudant Service](#cloudant) for how to search and create the service.)
88
+
The application is built to assume that you leave the default name of "cloudantNoSQLDB" for your service name. If you change the name, the app may break. Hit `Next`
101
89
8.**IMPORTANT:** Add your Twitter API credentials under environment variables. Right click, and select `Add`. Provide this information:
102
90
103
91
@@ -110,12 +98,12 @@ Make sure you are in the Java EE [perspective](http://help.eclipse.org/juno/inde
110
98
111
99

112
100
113
-
You may do this step later, but your application will fail without it. Click: `Finish`. Your app will deploy to Bluemix. If you haven't already created and bound your cloudant service, please refer to Step 5: Create a Cloudant Service
101
+
9.You may do this step later, but your application will fail without it. Click: `Finish`. Your app will deploy to Bluemix. If you haven't already created and bound your cloudant service, please refer to Step 5: Create a Cloudant Service
114
102
115
103
**CONGRATS!** Your app is now published to Bluemix.
116
104
(Note: It can take a few minutes to upload everything and deploy all of the services.)
117
105
118
-
### Step 5. Create a Cloudant service ###
106
+
### <aname="cloudant"></a> Step 5. Create a Cloudant service ###
119
107
120
108
There are two ways to create and bind the cloudant service to your application.
0 commit comments