|
|
|
# GGWP Leaderboard Website
|
|
|
|
|
|
|
|
A simple website that displays the leaderboard of the GGWP match. The leaderboard can be updated by
|
|
|
|
the admin using a nice control panel.
|
|
|
|
|
|
|
|
### Features
|
|
|
|
|
|
|
|
- Made using [Astro](https://astro.build/) with the NodeJS adapter for the endpoints
|
|
|
|
|
|
|
|
- Admins can create various matches and update the leaderboard using the control panel
|
|
|
|
|
|
|
|
- The leaderboard is displayed in a nice table with the player's name, score
|
|
|
|
|
|
|
|
- The leaderboard is updated in real-time using simple server-sent events
|
|
|
|
|
|
|
|
- The database is SQLite with a rooms table that has a `data` column that stores the public JSON
|
|
|
|
data of the match.
|
|
|
|
|
|
|
|
## Development
|
|
|
|
|
|
|
|
Install the dependencies:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bun install
|
|
|
|
```
|
|
|
|
|
|
|
|
Run the development server:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bun dev
|
|
|
|
```
|
|
|
|
|
|
|
|
## Deployment
|
|
|
|
|
|
|
|
Deploy the website:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
bun run build
|
|
|
|
```
|