![]() Twitter configuration (you need to create a Twitter application)Īfter you've set these variables you can run the application: NA_DB_USERNAME 'your cloudant username' e.g.NA_DB_PASSWORD 'your cloudant password' e.g.To run it locally the following environment variables need to be set.Ĭloudant service (copy from Bluemix dashboard) When running locally no authentication and authorization check is done and the data cache service is not used. The application can be run locally so that it can be tested and debugged before changes are deployed to Bluemix. NA_TW_CONSUMER_KEY 'your consumer key' e.g.'nhcl3Uw7bm4qNhUpZ09wuEb8R7jykia9DKTmI2yMQUbczWCXlN' NA_TW_CONSUMER_SECRET 'your consumer secret' e.g.NA_TW_ACCESS_TOKEN 'your acess token' e.g. ![]() 'nhwcbJKRTE8Lf2ZJx7wpo8CIWXNJPOykRTxNhZH22W01Y' NA_TW_ACCESS_TOKEN_SECRET 'your access token secret' e.g.' configuration (you need to create a Twitter application) NA_CURATORS 'your comma separated list' e.g.NA_SSO_CLIENT_SECRET 'your client secret' e.g.NA_SSO_CLIENT_IDENTIFIER 'your client id' e.g.NA_SSO_REDIRECTURI 'your redirect url' e.g. ![]() In order to pass additional configuration to the application running on Bluemix an user provided service is used.Ĭf cups news-aggregator-config -p "NA_SSO_REDIRECTURI, NA_SSO_CLIENT_IDENTIFIER, NA_SSO_CLIENT_SECRET, NA_CURATORS, NA_TW_ACCESS_TOKEN_SECRET, NA_TW_ACCESS_TOKEN, NA_TW_CONSUMER_SECRET, NA_TW_CONSUMER_KEY" You need to copy the generated client id and secret. The redirect URL needs to point to '/logon' e.g. In order to use the single sign on service, you need to create a 'Single Sign On Client Configuration' in the Bluemix dashboard. However some manual steps need to be done. When running on a server the application picks up the configuration from (most of) these services automatically. Install the Cloud Foundry command line tool To run the application on Bluemix you need to create an application and create and bind services. Setup of Bluemix Application and Services In your project properties under "Java Build Path" add the three libraries.Ĭonfigure the Liberty server (server.xml) Import the three jar files into the directory src/main/webapp/WEB-INF/lib/ (create lib if it doesn't exist): Install Client Libraries for Workload Scheduler Under Project Properties - Java Build Path - Libraries change the link of this file: To install this product, run the command:ĭownload and install WebSphere eXtreme Scale In order to get this file you need to download and install "WebSphere eXtreme Scale for Developers Liberty Profile" and link to it in your project settings. The only exception is the library .xs.client_1.1.jar which is needed for the data cache service. In order to compile the code locally the project pulls in almost all dependencies via Maven. You can either download the zip file or clone the project from Eclipse. Install the Eclipse Maven plugin (M2Eclipse) Install Eclipse, the Java Runtime and Mavenįind out more about Eclipse and Java Runtime installation
0 Comments
Leave a Reply. |