dependabot[bot] af29cf47e6 Bump next from 13.2.3 to 13.3.0 in /frontend (#175)
Bumps [next](https://github.com/vercel/next.js) from 13.2.3 to 13.3.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/vercel/next.js/releases">next's
releases</a>.</em></p>
<blockquote>
<h2>v13.3.0</h2>
<h3>Core Changes</h3>
<ul>
<li>Add Zod and router state validation: <a
href="https://redirect.github.com/vercel/next.js/issues/46962">#46962</a></li>
<li>Support default arrow function export in server boundary <a
href="https://redirect.github.com/vercel/next.js/issues/46977">#46977</a></li>
<li>Generate fixed route path for favicon.ico: <a
href="https://redirect.github.com/vercel/next.js/issues/46997">#46997</a></li>
<li>update turbopack: <a
href="https://redirect.github.com/vercel/next.js/issues/46994">#46994</a></li>
<li>Update next/font/google data: <a
href="https://redirect.github.com/vercel/next.js/issues/46988">#46988</a></li>
<li>fix: added jsdom &amp; canvas to the external packages list - fixes
<a
href="https://redirect.github.com/vercel/next.js/issues/46893">#46893</a>:
<a
href="https://redirect.github.com/vercel/next.js/issues/46990">#46990</a></li>
<li>Add auto-detection of image/x-icon content type: <a
href="https://redirect.github.com/vercel/next.js/issues/47013">#47013</a></li>
<li>fix: exclude 'mdx-bundler' from being bundled in server components:
<a
href="https://redirect.github.com/vercel/next.js/issues/46992">#46992</a></li>
<li>Add /route subpath to metadata static routes: <a
href="https://redirect.github.com/vercel/next.js/issues/47030">#47030</a></li>
<li>Ensure router.refresh() matches revalidatePath('/') behavior: <a
href="https://redirect.github.com/vercel/next.js/issues/46723">#46723</a></li>
<li>Reorganize client references manifest: <a
href="https://redirect.github.com/vercel/next.js/issues/46777">#46777</a></li>
<li>Opt-in to dynamic rendering when reading searchParams: <a
href="https://redirect.github.com/vercel/next.js/issues/46205">#46205</a></li>
<li>Fix CSS not being bundled in app dir: <a
href="https://redirect.github.com/vercel/next.js/issues/45787">#45787</a></li>
<li>feat(standalone): allow configuring KEEP_ALIVE_TIMEOUT via env var:
<a
href="https://redirect.github.com/vercel/next.js/issues/46052">#46052</a></li>
<li>i18n Improvements: <a
href="https://redirect.github.com/vercel/next.js/issues/47174">#47174</a></li>
<li>Support manifest.json static and dynamic route: <a
href="https://redirect.github.com/vercel/next.js/issues/47240">#47240</a></li>
<li>Ensure config and fetch revalidate are honored: <a
href="https://redirect.github.com/vercel/next.js/issues/47255">#47255</a></li>
<li>feat: add <code>fetchPriority</code> to <code>next/image</code>: <a
href="https://redirect.github.com/vercel/next.js/issues/47222">#47222</a></li>
<li>chore: add missing ts type in next-edge-app-route-loader: <a
href="https://redirect.github.com/vercel/next.js/issues/47243">#47243</a></li>
<li>Split app-render functions into separate files: <a
href="https://redirect.github.com/vercel/next.js/issues/47282">#47282</a></li>
<li>fix: typo in output:export error messages: <a
href="https://redirect.github.com/vercel/next.js/issues/47252">#47252</a></li>
<li>fix: handle different cases of React <code>fetchPriority</code>: <a
href="https://redirect.github.com/vercel/next.js/issues/47302">#47302</a></li>
<li>[edge] limit the api surface of <code>util</code>: <a
href="https://redirect.github.com/vercel/next.js/issues/47292">#47292</a></li>
<li>parallel routes: fix duplicate dev warning: <a
href="https://redirect.github.com/vercel/next.js/issues/47317">#47317</a></li>
<li>next/font/local prep: compartmentalize next/font/google: <a
href="https://redirect.github.com/vercel/next.js/issues/47213">#47213</a></li>
<li>Improve OTEL spans naming: <a
href="https://redirect.github.com/vercel/next.js/issues/47209">#47209</a></li>
<li>fix invalid comment in parseParameter function: <a
href="https://redirect.github.com/vercel/next.js/issues/47291">#47291</a></li>
<li>Add searchParams to leaf cache key: <a
href="https://redirect.github.com/vercel/next.js/issues/47312">#47312</a></li>
<li>Remove duplicated if statement: <a
href="https://redirect.github.com/vercel/next.js/issues/47322">#47322</a></li>
<li>Add a .catch to shared router for ssg fetching.: <a
href="https://redirect.github.com/vercel/next.js/issues/47265">#47265</a></li>
<li>parallel routes: fix nested routes: <a
href="https://redirect.github.com/vercel/next.js/issues/47323">#47323</a></li>
<li>[Nitpick] Remove unnecessary await in <code>base-server</code>: <a
href="https://redirect.github.com/vercel/next.js/issues/47313">#47313</a></li>
<li>Warn about default exports with App Routes: <a
href="https://redirect.github.com/vercel/next.js/issues/47263">#47263</a></li>
<li>Add better-sqlite3 to server external packages: <a
href="https://redirect.github.com/vercel/next.js/issues/47327">#47327</a></li>
<li>Change App Route Route Handler signature: <a
href="https://redirect.github.com/vercel/next.js/issues/47268">#47268</a></li>
<li>Calling turbopack from the next build CLI: <a
href="https://redirect.github.com/vercel/next.js/issues/46602">#46602</a></li>
<li>Update Turbopack to turbopack-230321.1: <a
href="https://redirect.github.com/vercel/next.js/issues/47342">#47342</a></li>
<li>parallel routes: fix HMR refetch issue: <a
href="https://redirect.github.com/vercel/next.js/issues/47343">#47343</a></li>
<li>Fix bad route path for custom metadata routes: <a
href="https://redirect.github.com/vercel/next.js/issues/47286">#47286</a></li>
<li>Fix POST fetch request cache heuristic in POST route handler: <a
href="https://redirect.github.com/vercel/next.js/issues/47333">#47333</a></li>
<li>Fix: only apply metadata dynamic image routes convention for app
dir: <a
href="https://redirect.github.com/vercel/next.js/issues/47367">#47367</a></li>
<li>Marks app paths in dev as supporting dynamic html: <a
href="https://redirect.github.com/vercel/next.js/issues/46848">#46848</a></li>
<li>fix: add pretty error for <code>exportPathMap</code> with
<code>app</code> dir: <a
href="https://redirect.github.com/vercel/next.js/issues/47371">#47371</a></li>
<li>Skip extra swc builds: <a
href="https://redirect.github.com/vercel/next.js/issues/47378">#47378</a></li>
<li>Simplify moduleProxy alias: <a
href="https://redirect.github.com/vercel/next.js/issues/47381">#47381</a></li>
<li>Skip warning if there is app directory for
<code>no-html-link-for-pages</code> rule: <a
href="https://redirect.github.com/vercel/next.js/issues/42516">#42516</a></li>
<li>Catch redirect() in root layout: <a
href="https://redirect.github.com/vercel/next.js/issues/47345">#47345</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="79031e608a"><code>79031e6</code></a>
v13.3.0</li>
<li><a
href="b8e7646fdc"><code>b8e7646</code></a>
v13.2.5-canary.34</li>
<li><a
href="045ad0d133"><code>045ad0d</code></a>
Replaced Reflect with ReflectAdapter (<a
href="https://redirect.github.com/vercel/next.js/issues/48000">#48000</a>)</li>
<li><a
href="9448913149"><code>9448913</code></a>
Revert &quot;Vendor <code>react@experimental</code> under an
<code>experimentalReact</code> flag&quot; (<a
href="https://redirect.github.com/vercel/next.js/issues/48038">#48038</a>)</li>
<li><a
href="76ad58b0c8"><code>76ad58b</code></a>
Only cache successful fetches (<a
href="https://redirect.github.com/vercel/next.js/issues/48033">#48033</a>)</li>
<li><a
href="95e46f73e4"><code>95e46f7</code></a>
report error when using &quot;use server&quot; on module level (<a
href="https://redirect.github.com/vercel/next.js/issues/47967">#47967</a>)</li>
<li><a
href="86cb8ec8e2"><code>86cb8ec</code></a>
fix: handle error case for <code>output: export</code> in <code>next
dev</code> (<a
href="https://redirect.github.com/vercel/next.js/issues/47768">#47768</a>)</li>
<li><a
href="4fbbb626b9"><code>4fbbb62</code></a>
Update normalize revalidate params for named matches (<a
href="https://redirect.github.com/vercel/next.js/issues/48032">#48032</a>)</li>
<li><a
href="946424efb3"><code>946424e</code></a>
parallel routes: return a 404 when a parallel route does not have a
default p...</li>
<li><a
href="bd8d7c61f7"><code>bd8d7c6</code></a>
Speed up native dev build (<a
href="https://redirect.github.com/vercel/next.js/issues/48028">#48028</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/vercel/next.js/compare/v13.2.3...v13.3.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=next&package-manager=npm_and_yarn&previous-version=13.2.3&new-version=13.3.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-04-17 11:14:03 +02:00
2023-03-01 08:19:19 -08: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 37 MiB
Languages
TypeScript 51.1%
Python 47.6%
CSS 0.8%
Dockerfile 0.2%