https://github.com/chew/chess-stats-worker
A random Cloudflare worker I made to track our Discord server's chess stats.
https://github.com/chew/chess-stats-worker
chess cloudflare stats typescript workers
Last synced: 19 days ago
JSON representation
A random Cloudflare worker I made to track our Discord server's chess stats.
- Host: GitHub
- URL: https://github.com/chew/chess-stats-worker
- Owner: Chew
- Created: 2023-06-26T19:26:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T04:09:11.000Z (almost 3 years ago)
- Last Synced: 2025-02-21T10:43:57.637Z (over 1 year ago)
- Topics: chess, cloudflare, stats, typescript, workers
- Language: TypeScript
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chess Stats
I made this goofy lil site for our Discord server's chess community. It's used to track intra-server games and stats. It's a work in progress, but it's functional.
## How to use
This site uses a D1 database with 2 tables, the schema is listed below:
```
table name: players
columns:
id - number (primary)
username - string
```
```
table name: games
columns:
id - number (primary)
date - string (YYYY-MM-DD)
white - number (foreign key to players)
black - number (foreign key to players)
winner - number (foreign key to players) or null, if a draw
link - string (a link to the game)
```
## Pages
There are only 2 pages, the home page, and a page to view a user's breakdown.