Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Twitter Based RSVP Application
JavaScript Ruby
tag: v0.1.3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
spec
.gitignore
LICENSE
README.md
Rakefile
TODO

README.md

twitrsvp

Another oauth experiment. Organize folks with sinatra and twitter. Try it out on TwitRSVP.

Installation

It's a sinatra app, packaged as a gem, deployed as a rack app.

% rake repackage
% sudo gem install pkg/twitrsvp*.gem

Your basic deps look like this:

% sudo gem install oauth json haml chronic curb data_objects dm-core dm-types dm-validations dm-timestamps sinatra

Deployment

Use passenger and a config.ru like this:

Example config.ru

require 'rubygems'
require 'twitrsvp'

DataMapper.setup(:default, "mysql://atmos:s3cr3t@localhost/twitrsvp_production")

ENV['TWIT_RSVP_READKEY'] = /\w{18}/.gen  # this should really be what twitter gives you
ENV['TWIT_RSVP_READSECRET'] = /\w{24}/.gen # this should really be what twitter gives you

class TwitRSVPSite < TwitRSVP::App
  set :public,      File.expand_path(File.dirname(__FILE__), "public")
  set :environment, :production
end

run TwitRSVPSite

testing

You need jacqui's fork of fakeweb for the time being % git clone git://github.com/jacqui/fakeweb.git % cd fakeweb % rake repackage % sudo gem install pkg/fakeweb-1.2.0.gem

Then you just run rake...

Something went wrong with that request. Please try again.