An open API service indexing awesome lists of open source software.

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

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