https://github.com/jdolan/quetoo-stats
REST API and database schema for Quetoo gameplay statistics
https://github.com/jdolan/quetoo-stats
Last synced: 20 days ago
JSON representation
REST API and database schema for Quetoo gameplay statistics
- Host: GitHub
- URL: https://github.com/jdolan/quetoo-stats
- Owner: jdolan
- Created: 2026-05-24T02:26:17.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-06-05T22:08:51.000Z (about 1 month ago)
- Last Synced: 2026-06-05T22:22:07.018Z (about 1 month ago)
- Language: PHP
- Size: 87.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# quetoo-stats
REST API and database schema for Quetoo gameplay statistics.
## Stack
- **Apache** + **mod_php** (PHP 8+)
- **MariaDB** (MySQL-compatible)
- **Let's Encrypt** for TLS
## API
### `POST /api/frags`
Accepts a JSON array of frag events from a Quetoo dedicated server.
```json
[
{
"level": "dm_quetoo",
"attacker": "PlayerA",
"attacker_guid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"target": "PlayerB",
"target_guid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"weapon": "railgun",
"mod": 12
}
]
```
### `GET /api/leaderboard`
Returns top fraggers. Optional query params: `limit`, `level`, `weapon`.
## Setup
```bash
sudo bash install.sh
```
Installs the full LAMP stack, configures MariaDB, deploys the app, and
obtains a Let's Encrypt certificate for `stats.quetoo.org`.
## Configuration
Credentials live in `config.local.php` (generated by `install.sh`, never committed).