Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Demo application on OpenShift | This is an application that pulls content from twitter and supports displaying it on multiple devices. The backend and web interface runs on OpenShift.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .openshift
Octocat-spinner-32 jbw
Octocat-spinner-32 shared
Octocat-spinner-32 tweetstream updated pom versions January 17, 2013
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 environment-readme.txt
Octocat-spinner-32 pom.xml updated pom versions January 17, 2013
README.md

TweetStream on OpenShift

This is an application that pulls content from twitter and supports displaying it on multiple devices. The backend and web interface runs on OpenShift.

The steps for deploying this application are simple. The only prerequisite is to have your own Twitter API access credentials.

Step 1: Configure Twitter4j

Everything is setup and configured for twitter4j except the API credentials. We can not provide public credentials for accessing twitter API's via twitter4j. This mean you will need to get and create your own credentials following the twitter4j and twitter instructions.

This is really not too hard, but does require some effort. Because these steps change from time to time you should see http://twitter4j.org/en/configuration.html and https://dev.twitter.com/pages/auth for the details.

Basically you will need to login to https://dev.twitter.com and create an application. Once you have an application registered with Twitter you will be able to create the oauth keys on the application details page.

Step 2: Running on OpenShift

Create an account at https://www.openshift.com

Create a jbossas application

rhc app create tweet jbossas-7

Add this upstream seambooking repo

cd tweet
git remote add upstream -m master git://github.com/openshift-quickstart/tweetstream-example.git
git pull -s recursive -X theirs upstream master

Edit tweetstream/src/main/resources/twitter4j.properties and add twitter API keys

oauth.consumerKey=
oauth.consumerSecret=
oauth.accessToken=
oauth.accessTokenSecret=

Commit this edit

git commit -a -m "add my API creds for twitter"

Then push the repo upstream

git push

That's it, you can now checkout your application at:

http://tweet-$yournamespace.rhcloud.com
Something went wrong with that request. Please try again.