mirror of
https://github.com/evroon/bracket.git
synced 2026-03-04 07:11:00 -05:00
21ffd66150e19a08b16891992a04af7fdf8383d7
Bumps [cookies-next](https://github.com/andreizanik/cookies-next) from 3.0.0 to 4.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/andreizanik/cookies-next/releases">cookies-next's releases</a>.</em></p> <blockquote> <h2>v4.0.0</h2> <h2>What's Changed</h2> <ul> <li>Add Prettier config by <a href="https://github.com/greg2012201"><code>@greg2012201</code></a> in <a href="https://redirect.github.com/andreizanik/cookies-next/pull/48">andreizanik/cookies-next#48</a></li> <li>Middleware support by <a href="https://github.com/greg2012201"><code>@greg2012201</code></a> in <a href="https://redirect.github.com/andreizanik/cookies-next/pull/51">andreizanik/cookies-next#51</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/andreizanik/cookies-next/compare/v3.0.0...v4.0.0">https://github.com/andreizanik/cookies-next/compare/v3.0.0...v4.0.0</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="28c6818f3b"><code>28c6818</code></a> 4.0.0</li> <li><a href="8f0f95c4c7"><code>8f0f95c</code></a> Middleware support (<a href="https://redirect.github.com/andreizanik/cookies-next/issues/51">#51</a>)</li> <li><a href="f00a5e4b3f"><code>f00a5e4</code></a> Merge pull request <a href="https://redirect.github.com/andreizanik/cookies-next/issues/48">#48</a> from greg2012201/prettier</li> <li><a href="8062bd2944"><code>8062bd2</code></a> Update tabWidth.</li> <li><a href="d5c32e89cc"><code>d5c32e8</code></a> Format all files with Prettier.</li> <li><a href="72026f3139"><code>72026f3</code></a> Add prettier config.</li> <li>See full diff in <a href="https://github.com/andreizanik/cookies-next/compare/v3.0.0...v4.0.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bracket
Warning
This project is still under construction and considered beta software. Release v1.0.0 will be the first out-of-beta release.
Ladder tournament system meant to be easy to use. Bracket is written in async Python (with FastAPI) and Next.js as frontend using the Mantine library.
Preview
Setup
Database
First create a bracket cluster:
sudo pg_createcluster -u postgres -p 5532 13 bracket
pg_ctlcluster 13 bracket start
Subsequently, create a new bracket_dev database:
sudo -Hu postgres psql -p 5532
CREATE USER bracket_dev WITH PASSWORD 'bracket_dev';
CREATE DATABASE bracket_dev OWNER bracket_dev;
You can do the same but replace the user and database name with:
bracket_ci: for running testsbracket_prod: for a production database
The database URL can be specified per environment in the .env files (see config).
Config
Copy ci.env to prod.env and fill in the values:
PG_DSN: The URL of the PostgreSQL databaseJWT_SECRET: Create a random secret usingopenssl rand -hex 32CORS_ORIGINSandCORS_ORIGIN_REGEX: Specify allowed frontend domain names for CORS (see the FastAPI docs)ADMIN_EMAILandADMIN_PASSWORD: The credentials of the admin user, which is created when initializing the database
Running the frontend and backend
The following starts the frontend and backend for local development:
Frontend
cd frontend
yarn
npm run dev
Backend
cd backend
pipenv install -d
pipenv shell
./run.sh
Languages
TypeScript
51.1%
Python
47.6%
CSS
0.8%
Dockerfile
0.2%