Giter VIP home page Giter VIP logo

tweetstream-example's Introduction

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 preqrequisite 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 http://openshift.redhat.com/

Create a jbossas-7 application

rhc app create -a tweet -t jbossas-7

Add this upstream seambooking repo

cd tweet
git remote add upstream -m master git://github.com/openshift/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

tweetstream-example's People

Contributors

danmcp avatar dblado avatar bdecoste avatar burrsutter avatar

Stargazers

Tim Spann avatar

Watchers

James Cloos avatar Tim Spann avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.