dependabot[bot] 907af48dcd Bump @testing-library/dom from 8.19.1 to 9.0.0 in /frontend (#121)
Bumps
[@testing-library/dom](https://github.com/testing-library/dom-testing-library)
from 8.19.1 to 9.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/testing-library/dom-testing-library/releases"><code>@​testing-library/dom</code>'s
releases</a>.</em></p>
<blockquote>
<h2>v9.0.0</h2>
<h1><a
href="https://github.com/testing-library/dom-testing-library/compare/v8.20.0...v9.0.0">9.0.0</a>
(2023-02-16)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>ByRole:</strong> Constrain API (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1211">#1211</a>)
(<a
href="746def6147">746def6</a>)</li>
</ul>
<h3>Features</h3>
<ul>
<li>Drop support for Node.js 12.x (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1207">#1207</a>)
(<a
href="c37ea2e711">c37ea2e</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<ul>
<li><strong>ByRole:</strong> Only allow <code>string</code> as a
<code>role</code>.
Drop support for <code>exact</code>, <code>trim</code>,
<code>collapseWhitespace</code>, and <code>normalizer</code>
options.</li>
<li>Minimum supported Node.js version is now 14.x</li>
</ul>
<h2>v9.0.0-alpha.2</h2>
<h1><a
href="https://github.com/testing-library/dom-testing-library/compare/v9.0.0-alpha.1...v9.0.0-alpha.2">9.0.0-alpha.2</a>
(2023-02-09)</h1>
<h3>Bug Fixes</h3>
<ul>
<li><strong>ByRole:</strong> Constrain API (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1211">#1211</a>)
(<a
href="746def6147">746def6</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<ul>
<li><strong>ByRole:</strong> Only allow <code>string</code> as a
<code>role</code>.
Drop support for <code>exact</code>, <code>trim</code>,
<code>collapseWhitespace</code>, and <code>normalizer</code>
options.</li>
</ul>
<h2>v9.0.0-alpha.1</h2>
<h1><a
href="https://github.com/testing-library/dom-testing-library/compare/v8.20.0...v9.0.0-alpha.1">9.0.0-alpha.1</a>
(2023-01-29)</h1>
<h3>Features</h3>
<ul>
<li>Drop support for Node.js 12.x (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1207">#1207</a>)
(<a
href="c37ea2e711">c37ea2e</a>)</li>
</ul>
<h3>BREAKING CHANGES</h3>
<ul>
<li>Minimum supported Node.js version is now 14.x</li>
</ul>
<h2>v8.20.0</h2>
<h1><a
href="https://github.com/testing-library/dom-testing-library/compare/v8.19.1...v8.20.0">8.20.0</a>
(2023-01-16)</h1>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="746def6147"><code>746def6</code></a>
fix(ByRole): Constrain API (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1211">#1211</a>)</li>
<li><a
href="2d360a6594"><code>2d360a6</code></a>
docs: add DaniAcu as a contributor for code (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1212">#1212</a>)</li>
<li><a
href="42809fe71a"><code>42809fe</code></a>
chore: Migrate <code>ByRole</code> to TypeScript (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1186">#1186</a>)</li>
<li><a
href="25dc8a9053"><code>25dc8a9</code></a>
Bump kcd-scripts to 13.0.0 (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1209">#1209</a>)</li>
<li><a
href="6e2e864272"><code>6e2e864</code></a>
Bump kcd-scripts to 12.x (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1208">#1208</a>)</li>
<li><a
href="c37ea2e711"><code>c37ea2e</code></a>
feat: Drop support for Node.js 12.x (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1207">#1207</a>)</li>
<li><a
href="0ce0c7054d"><code>0ce0c70</code></a>
feat: add offline/online events (<a
href="https://github-redirect.dependabot.com/testing-library/dom-testing-library/issues/1205">#1205</a>)</li>
<li>See full diff in <a
href="https://github.com/testing-library/dom-testing-library/compare/v8.19.1...v9.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@testing-library/dom&package-manager=npm_and_yarn&previous-version=8.19.1&new-version=9.0.0)](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 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>
2023-02-21 08:33:24 +01:00
2023-01-16 16:35:44 +01:00
2023-02-21 00:01:48 +01:00
2023-01-21 15:56:48 +01:00
2023-01-22 16:28:26 +01:00
2023-01-16 19:35:05 +01:00

Favicon of Bracket

Bracket

codecov backend frontend


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 tests
  • bracket_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 database
  • JWT_SECRET: Create a random secret using openssl rand -hex 32
  • CORS_ORIGINS and CORS_ORIGIN_REGEX: Specify allowed frontend domain names for CORS (see the FastAPI docs)
  • ADMIN_EMAIL and ADMIN_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
Description
No description provided
Readme AGPL-3.0 28 MiB
Languages
TypeScript 51.1%
Python 47.6%
CSS 0.8%
Dockerfile 0.2%