Introduction
Bracket is a web application that manages a group of players and their picks in the national college basketball tournament. It was written to provide an open source bracket system for the tourney that is fast, simple and ad free.
Download
The source is available at:
http://github.com/mateu/Bracket
Download it via:
git clone git@github.com:mateu/Bracket.git
Install
Dependencies
Get the CPAN dependencies like so:
cd Bracket perl Makefile.PL make test
Create admin account and Deploy the Database
For the sake of simplicity we’ll assume a SQLite database deployment1.
script/deploy_bracket.pl
You will be prompted to create an admin account2.
Start the Application
Once the database has been deployed and an admin account created, on can start up an instance of the application and test it out. Start the test instance like so:
script/bracket_server.pl
This will create the Bracket web application on http://localhost:3000/. Since it’s a Catalyst one has a variety of ways to run the instance: fastcgi, mod_perl, psgi etc.
Usage Notes
Accounts
Bracket provides login management such as password change and reset.
Scoring
Any admin account has the ability to edit the Perfect Player bracket and compute scores.
Views
Players can view each others brackets while in progress, but only admins can edit another player’s bracket.
Footnotes
1 This saves us from having to edit bracket.conf with a database dsn, user and pass. In addition we don’t have to create the database in advance like we would with PostgreSQL or MySQL.
2 An account with admin role is necessary to mark the Perfect Player bracket
which is used to computes scores. Computing scores is another admin only role.
Showing changes from previous revision. Removed | Added
