Home

Awesome

mls-almanac

The mls-almanac is a member of the opensport and openfootball community. The goal is to provide query-able, historical data for Major League Soccer in the US and Canada.

This app uses the following open data sets:

Setup Instructions

To initialize the databases, run the create task:

$ rake create

To seed the database with world and season information, run the init task:

$ rake init

To update the mls data, run the update task (Note, it is recommended to delete, init, update instead of just updating)

$ rake update

To delete all entries from all tables, run the delete task

$ rake delete

Deployment Notes

sportdb has a lot of rows, which can slow down the database. On Heroku, you can run the rake tasks in the background as follows:

$rake run:detached rake init