simple twitter web app on openshift cloud
Ruby Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.openshift
app
config
db
doc
lib
log
public
script
tmp
vendor
.gitignore
Gemfile
Gemfile.lock
README.md
README.openshift
Rakefile
config.ru
thread-dumper.rb

README.md

hummer

Too simple twitter web app on openshift cloud.

Requires ruby 1.9 and rails 3.2.x.

Support proxy (when you don't deploy it in the public cloud).

###Usage###

  1. Create an account at http://openshift.redhat.com/ and setup environments as per the instructions of openshift website.

  2. Create a domain then a rails app on openshift:

    rhc app create -a <yourapp> -t ruby-1.9
    
  3. Register your app on https://dev.twitter.com

  4. Add this upstream quickstart repository

    git remote add upstream -m master https://github.com/xinfengliu/hummer.git
    git pull -s recursive -X theirs upstream master
    
  5. Modify config/twitter_auth.yml, input your oauth_consumer_key and oauth_consumer_secret acquired in Step 3.

  6. Modify the last line of config/twitter_auth.yml, input your app and domain name acquired in Step 1 and Step 2.

  7. Push the code to openshift

    git push
    
  8. Visit http://yourapp-yourdomain.rhcloud.com

###Acknowledgement### In fact, I wrote this simple app in 2009 and at that time it leveraged https://github.com/mbleigh/twitter-auth. Since twitter-auth hasn't been updated since 2009, it is not compatible with rails 3, so for now I integrated some codes directly to my source repository.

###Issues### Again, since twitter-auth was old, the codes does not work with http://api.twitter.com, instead, the codes still work with https://twitter.com. This means someday the codes might not work anymore. In fact, currently the twitter list timeline does not work in this simple app.