Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

sportbook web app - free open source sports betting (or prediction) pool in ruby on rails (version 3.2 and up)

tree: 9ac787879d

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 log some polish March 06, 2012
Octocat-spinner-32 public
Octocat-spinner-32 script some polish March 06, 2012
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 NOTES.markdown
Octocat-spinner-32 README.markdown
Octocat-spinner-32 Rakefile
Octocat-spinner-32 TODO.markdown

Welcome to Sportbook.

A free, open source sports betting pool in Ruby on Rails (version 3.2 and up).

Example events include:

  • UEFA Champions League 2012/13
  • UEFA Europa League 2011/12
  • Österreichische Bundesliga 2011/12, 2012/13
  • ÖFB Cup 2011/12, 2012/13
  • UEFA European Football Championship aka Euro 2012
  • Romania Liga 1 2012/13
  • México Primera División Apertura 2012
  • World Cup Quali 2012/13
  • National Hockey League (NHL) 2012

For more events or leagues, see the sport.db site.


Try the demo install running on Heroku

Use the login credentials demo/demo.


Setup on your local machine

Clone the Sportbook git repo:

git clone git://

Get all your Ruby libraries (gems) installed using the bundler tool:

cd sportbook
bundle install --without production

Note, use the --without production option for local development unless you want to install the PostgreSQL (pg) database libraries and services (required for production on the Heroku hosting service.)

Setup the database and seeds:

rake db:setup

Showtime! Startup the server and use the demo/demo credentials to sign in:

rails server

That's it.

Setup on Heroku

Clone the Sportbook git repo:

git clone git://

Create app on Heroku e.g.

cd sportbook
heroku create <your_app_name_here>

Upload via

git push heroku

Create DB on first upload via

heroku run rake db:setup

Showtime! Sign in using the demo/demo credentials. That's it.


The sportbook scripts and templates are dedicated to the public domain. Use it as you please with no restrictions whatsoever.

Questions? Comments?

Send them along to the Open Sports Database & Friends Forum/Mailing List. Thanks!

Something went wrong with that request. Please try again.