The Great Awwnime Bracket
CSS PHP JavaScript HTML Other
Switch branches/tags
Nothing to show
Clone or download
Failed to load latest commit information.
api age can be used to ban a user Jun 29, 2018
cache committing cache directory Jan 24, 2016
controller fixed couple of logic issues Jul 8, 2018
cron will not post to reddit for hidden brackets Sep 9, 2015
images some cleanup Jan 13, 2016
lib Add normalize command to fix bracket state Jul 5, 2018
sql rollback is essentially complete Apr 5, 2018
static added secondary nav to bracket detail pages, fixed up scrolling in re… Jun 6, 2018
tests migrating to moleculejs packages Apr 19, 2016
views code alignment for normalize, normalize + rollback are site admin only Jul 8, 2018
.gitignore removed external font dependency Jan 27, 2016
.travis.yml trying trusty instead of precise Mar 23, 2016
Gruntfile.js migrating to moleculejs packages Apr 19, 2016 fixing headers in README Jun 9, 2018
ai_projections.php Cruft code removed, formula explanation added Nov 20, 2013
app-config.sample.php anti cheating/spamming measures added to login May 19, 2018
buckets.json added character swapping A/B test Oct 26, 2014
composer-install.php updated composer installer Jul 19, 2016
composer.json Add normalize command to fix bracket state Jul 5, 2018
config.sample.php db does not connect in testing. also, adding predis to composer Mar 23, 2016
database.sql database script updated Dec 9, 2015
index.php more changes to configs Jan 25, 2015
karma.conf.js testing setup + tests for singleton Jan 15, 2016
package.json migrating to moleculejs packages Apr 19, 2016

Build Status


A site for running standard elimination style brackets.

Things you'll need to run brakkit

  • PHP 5.4+
  • MySQL/MariaDB 5.1+
  • NodeJS 0.12+ (to build static JavaScript assets)
  • memcached
  • redis

Configuration and Installing


Brakkit is set up to allow multiple front-ends run with a single back-end. As such, there are two config files:

  • config.php: This is the configuration for the back-end system and is primarily database setup. The back-end portion houses the api/, cache/, controller/, lib/, and images/ directories.
  • app-config.php: Configuration values for an individual front-end. The front-end consists of the static/ and views/ directories. Use app-config.sample.php to set up your app config.



To bootstrap your database, use your favorite SQL execution method of choice to run the queries in database.sql. You can do so from the commandline as follows:

mysql -u USER_NAME -p DATABASE_NAME < bracket.sql

At this point, you'll want to set the values in config.php to connect to your database.

Building Static Assets

You'll need node and npm for the following. If you don't have these, I recommend using nvm to install these on your system.

Once you've installed that (or if you already have node), run the following to build all the static content:

npm install
grunt build

This will build the following files that you'll want to ensure is served from your front-end: