Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
craigkai committed Aug 12, 2024
1 parent 0c2313e commit 3570aa3
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ The problems with creating a schedule by hand are that teams often end up playin

I knew I wanted to build something for fun and learning using SvelteKit and Supabase, so this is the problem that I chose to tackle (I know scheduling tournaments is a solved problem)!

<img src="static/blog/images/settings.png" alt="Settings page" style="width: 100%; margin-top: 20px; margin-bottom: 20px; " />
<img src="assets/blog/settings.png" alt="Settings page" style="width: 100%; margin-top: 20px; margin-bottom: 20px; " />
46 changes: 46 additions & 0 deletions developer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Volleyball Tournament Manager

<picture>
<img alt="Screenshot of matches view." src="/assets/matches.png">
</picture>

## Developing

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
## Supabase locally

```bash
supabase start
supabase npx supabase link
npx supabase db pull
```

Should set supabase URL and key to connect to local instance in `.env.development`.

```
PUBLIC_COMMIT_REF=dev
PUBLIC_ADMIN_USER=root@localhost
PUBLIC_ADMIN_USER_PASSWORD=njkdnbkjdbfhjf
PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
PUBLIC_SUPABASE_ANON_KEY=<YOUR KEY>
```
2 changes: 1 addition & 1 deletion src/lib/brackets/brackets.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { findStandings } from '../standings.svelte';
import { Matches } from '../matches.svelte';

export class Brackets extends Matches {
matches?: MatchRow[] = $state();
matches: MatchRow[] = $state();
type = 'bracket';

// Overload Matches load method to only load our bracket matches.
Expand Down
Binary file removed static/blog/images/edmo.mov
Binary file not shown.
Binary file removed static/blog/images/matches.png
Binary file not shown.
Binary file removed static/blog/images/settings.png
Binary file not shown.
Binary file removed static/blog/images/subscribeToChanges.png
Binary file not shown.

0 comments on commit 3570aa3

Please sign in to comment.