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.
The source is available at:
Download it via:
git clone email@example.com:mateu/Bracket.git
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.
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:
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.
Bracket provides login management such as password change and reset.
Any admin account has the ability to edit the Perfect Player bracket and compute scores.
Players can view each others brackets while in progress, but only admins can edit another player’s bracket.
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.