Skip to content
/ miff Public

Melbourne International Film Festival (scraped and remixed into a datamapper/haml/sinatra app)

License

Notifications You must be signed in to change notification settings

yertto/miff

Repository files navigation

The MIFF challenge:

Melbourne International Film Festival (scraped and remixed into a datamapper/haml/sinatra app)

http://www.melbournefilmfestival.com.au | V http://github.com/yertto/miff | V

It'd be interesting to see what else could be done with the MIFF data.

So this challenge is out there, but you'd better get to it as MIFF is running from Thu 22nd July - Sat 7th July, 2010

Create your own MIFF app

git clone http://github.com/yertto/miff.git
cd miff

install required gems using bundle:

bundle install --without production

scrape and store the data:

./miff_fetcher.rb

start your sinatra app:

./server.rb

Host it on heroku

install heroku:

sudo gem install heroku
heroku keys:add

:

Enter your Heroku credentials.
Email: joe@example.com
Password: 
Uploading ssh public key /Users/joe/.ssh/id_rsa.pub

create your own app:

heroku create miff-joe
git push heroku master

push data to it:

heroku db:push sqlite://devel.db

add a link to your app on the wiki

Technical details

  • First miff_fetcher.rb scrapes the data using nokogiri and stores it using datamapper.
  • Then server.rb serves the data using sinatra, which renders it using haml templates which it (mostly) generates at startup. (NB. this means the entire website can be generated from very few lines of code)

Acknowledgements

About

Melbourne International Film Festival (scraped and remixed into a datamapper/haml/sinatra app)

Resources

License

Stars

Watchers

Forks

Packages

No packages published