dependabot[bot] 35ff575b8e Bump react-redux from 8.0.5 to 9.0.2 in /frontend (#379)
Bumps [react-redux](https://github.com/reduxjs/react-redux) from 8.0.5
to 9.0.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/reduxjs/react-redux/releases">react-redux's
releases</a>.</em></p>
<blockquote>
<h2>v9.0.2</h2>
<p>This <strong>bugfix release</strong> makes additional tweaks to the
React Native artifact filename to help resolve import and bundling
issues with RN projects.</p>
<h2>What's Changed</h2>
<ul>
<li>Change react-native output extension from <code>.mjs</code> to
<code>.js</code> by <a
href="https://github.com/aryaemami59"><code>@​aryaemami59</code></a> in
<a
href="https://redirect.github.com/reduxjs/react-redux/pull/2102">reduxjs/react-redux#2102</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/reduxjs/react-redux/compare/v9.0.1...v9.0.2">https://github.com/reduxjs/react-redux/compare/v9.0.1...v9.0.2</a></p>
<h2>v9.0.1</h2>
<p>This <strong>bugfix release</strong> updates the package to include a
new <code>react-redux.react-native.js</code> bundle that specifically
imports React Native, and consolidates all of the <code>'react'</code>
imports into one file to save on bundle size (and enable some tricky
React Native import handling).</p>
<h2>What's Changed</h2>
<ul>
<li>Add an RN-specific bundle and consolidate imports by <a
href="https://github.com/markerikson"><code>@​markerikson</code></a> in
<a
href="https://redirect.github.com/reduxjs/react-redux/pull/2100">reduxjs/react-redux#2100</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a
href="https://github.com/reduxjs/react-redux/compare/v9.0.0...v9.0.1">https://github.com/reduxjs/react-redux/compare/v9.0.0...v9.0.1</a></p>
<h2>v9.0.0</h2>
<p>This <strong>major release</strong>:</p>
<ul>
<li>Switches to requiring React 18 and Redux Toolkit 2.0 / Redux
5.0</li>
<li>Updates the packaging for better ESM/CJS compatibility and
modernizes the build output</li>
<li>Updates the options for dev mode checks in
<code>useSelector</code></li>
<li>Adds a new React Server Components artifact that throws on use, to
better indicate compat issues</li>
</ul>
<p>This release has <strong>breaking changes</strong>.</p>
<p>This release is part of a wave of major versions of all the Redux
packages: <strong>Redux Toolkit 2.0, Redux core 5.0, React-Redux 9.0,
Reselect 5.0, and Redux Thunk 3.0</strong>.</p>
<p>For full details on all of the breaking changes and other significant
changes to all of those packages, see the <strong><a
href="https://redux.js.org/usage/migrations/migrating-rtk-2">&quot;Migrating
to RTK 2.0 and Redux 5.0&quot; migration guide</a></strong> in the Redux
docs.</p>
<blockquote>
<p>[!NOTE]
The Redux core, Reselect, and Redux Thunk packages are included as part
of Redux Toolkit, and RTK users do not need to manually upgrade them -
you'll get them as part of the upgrade to RTK 2.0. (If you're not using
Redux Toolkit yet, <a
href="https://redux.js.org/usage/migrating-to-modern-redux"><strong>please
start migrating your existing legacy Redux code to use Redux Toolkit
today!</strong></a>)
React-Redux is a separate, package, but we expect you'll be upgrading
them together.</p>
</blockquote>
<pre lang="bash"><code># React-Redux
npm install react-redux
yarn add react-redux
<h1>RTK</h1>
<p>npm install <code>@​reduxjs/toolkit</code>
yarn add <code>@​reduxjs/toolkit</code></p>
<h1>Standalone Redux core</h1>
<p>npm install redux
yarn add redux
&lt;/tr&gt;&lt;/table&gt;
</code></pre></p>
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="dbdac99cb7"><code>dbdac99</code></a>
Release 9.0.2</li>
<li><a
href="fd1c0d77ed"><code>fd1c0d7</code></a>
Merge pull request <a
href="https://redirect.github.com/reduxjs/react-redux/issues/2102">#2102</a>
from aryaemami59/feature/9.0-react-native</li>
<li><a
href="c24b5ac3ee"><code>c24b5ac</code></a>
Merge branch 'master' of <a
href="https://github.com/reduxjs/react-redux">https://github.com/reduxjs/react-redux</a>
into feature/...</li>
<li><a
href="97a7b1603d"><code>97a7b16</code></a>
Change react-native output extension from <code>.mjs</code> to
<code>.js</code></li>
<li><a
href="e215baa694"><code>e215baa</code></a>
Replace CRA in <code>README</code> with VIte and Next (<a
href="https://redirect.github.com/reduxjs/react-redux/issues/2101">#2101</a>)</li>
<li><a
href="ad56bd08cc"><code>ad56bd0</code></a>
Release 9.0.1</li>
<li><a
href="11060e5193"><code>11060e5</code></a>
Change background colour for code in blockquotes for dark themes (<a
href="https://redirect.github.com/reduxjs/react-redux/issues/2094">#2094</a>)</li>
<li><a
href="2c34e078d8"><code>2c34e07</code></a>
Merge pull request <a
href="https://redirect.github.com/reduxjs/react-redux/issues/2100">#2100</a>
from reduxjs/feature/9.0-react-native</li>
<li><a
href="e5a558af9c"><code>e5a558a</code></a>
Update Redux dep</li>
<li><a
href="fd2631f861"><code>fd2631f</code></a>
Really hack around React export</li>
<li>Additional commits viewable in <a
href="https://github.com/reduxjs/react-redux/compare/v8.0.5...v9.0.2">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=react-redux&package-manager=npm_and_yarn&previous-version=8.0.5&new-version=9.0.2)](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>
2023-12-06 08:40:06 +01:00
2023-09-12 21:37:48 +02:00
2023-11-27 20:38:30 +01:00
2023-12-03 16:45:35 +01:00

Favicon of Bracket

Bracket

codecov backend frontend last
commit release


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.

It has the following features:

  • Supports single elimination, round-robin and swiss formats.
  • Build your tournament structure with multiple stages that can have multiple groups/brackets in them.
  • Drag-and-drop matches to different courts or reschedule them to another start time.
  • Various dashboard pages are available that can be presented to the public, customized with a logo.
  • Create/update teams, and add players to teams.
  • Create multiple clubs, with multiple tournaments per club.
  • Swiss tournaments can be handled dynamically, with automatic scheduling of matches.

Preview

Quickstart

To quickly run bracket to see how it works, clone it and run docker-compose up:

git clone git@github.com:evroon/bracket.git
cd bracket
sudo docker-compose up -d

This will start the backend and frontend of Bracket, as well as a postgres instance. You should now be able to view bracket at http://localhost:3000. You can log in with username test@example.org and password aeGhoe1ahng2Aezai0Dei6Aih6dieHoo.

To insert dummy rows into the database, run:

sudo docker exec bracket-backend pipenv run ./cli.py create-dev-db

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).

Read the full documentation about setting up Bracket in the docs.

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

Read more about configuration in the docs.

Running the frontend and backend for development

The following starts the frontend and backend for local development:

Frontend

cd frontend
yarn run dev

Backend

cd backend
pipenv install -d
pipenv shell
./run.sh

License

Bracket is licensed under AGPL-v3.0 See LICENSE

Description
No description provided
Readme AGPL-3.0 35 MiB
Languages
TypeScript 51.1%
Python 47.6%
CSS 0.8%
Dockerfile 0.2%