This is a hastily written application to power a live tweet stream used during our Hey! events.
It uses Pusher to stream tweets collected by a broker to a simple web client.
To get things running you'll need to bundle your environment and define some env vars.
First bundle (the application currently uses Ruby 2.2.2):
bundle install
Then set your Pusher env vars:
PUSHER_URL=
PUSHER_PUBLIC_KEY=
As well as your Twitter credentials:
TWITTER_CONSUMER_KEY=
TWITTER_CONSUMER_SECRET=
TWITTER_ACCESS_TOKEN=
TWITTER_ACCESS_TOKEN_SECRET=
Finally you'll want to set the query to the hashtag you want to follow:
TWITTER_QUERY=#heyldf
To run the application, use Foreman:
bundle exec foreman start
This will start the broker used to stream tweets to the client as well as the Sinatra application.