A simple tournament bracket creation and management application. Built with Flask and MySQL.
app.py— Flask app with register, login, logout, create bracket, browse, view, etcschema.sql— database schema and stored procedurestemplates/— HTML templatesstatic/— static files (CSS)requirements.txt— Python dependencies
-
Install MySQL and start the server. Create the database from the skeleton schema:
mysql -u root -p < schema.sql -
Create a
.envfile following the format in.env.example:DB_USER=your_username DB_PASSWORD=your_password DB_NAME=your_database DB_HOST=localhost SECRET_KEY=your_secret_key -
Create a Python virtual environment and install the dependencies:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txt -
Run the app:
python app.py -
Open http://127.0.0.1:5000/ in your browser. Register an account, create a bracket, and view it.