A memcache-enabled server to fetch and store tweets based on a collection of search terms.
☝️ Tweetflight includes a separate client that handles the front end: https://github.com/superhighfives/tweetflight-archive
- Ruby 1.9
- Bundler (
gem install bundler
) - Memcached (
brew install memcached
) - A Twitter application (https://dev.twitter.com/)
Copy the sample foreman enviroment, customising the Twitter keys to catch the twitter app you created.
bundle
cp sample.env .env
memcached &
bundle exec foreman start
Locally:
bundle exec foreman run ruby scripts/fetch.rb
or via the Heroku Scheduler add-on:
ruby scripts/fetch.rb
You also need to make sure the correct Twitter app env values are set:
heroku config:add TWITTER_CONSUMER_KEY blahblahblah
etc
This code (not including the lyrics) is licensed under a Creative Commons Attribution License: you may use it, but you must give attribution.