M0: scaffold — uv project, FastAPI health, pytest
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
31
README.md
Normal file
31
README.md
Normal file
@@ -0,0 +1,31 @@
|
||||
# TFT-Simulator
|
||||
|
||||
Trainings-Tool: TFT-Runden schnell simulieren, 1 Spieler vs. 7 Bots.
|
||||
Kampf = Vergleich von Boardstärke-Scores (Regel-Baseline + gelernte Gewichte aus Endboard-Matchdaten).
|
||||
|
||||
## Setup
|
||||
|
||||
```sh
|
||||
cd backend
|
||||
uv sync
|
||||
uv run pytest
|
||||
```
|
||||
|
||||
## Pipeline
|
||||
|
||||
```sh
|
||||
uv run python -m tft.cli fetch-static # Community Dragon, kein Key nötig
|
||||
uv run python -m tft.cli crawl # braucht RIOT_API_KEY in .env
|
||||
uv run python -m tft.cli extract
|
||||
uv run python -m tft.cli build-artifact
|
||||
uv run python -m tft.cli calibrate
|
||||
uv run python -m tft.cli refresh # crawl + extract + build-artifact (für Cron)
|
||||
```
|
||||
|
||||
Riot-Dev-Key: https://developer.riotgames.com (24h gültig), in `backend/.env` als `RIOT_API_KEY=...`.
|
||||
|
||||
## Server
|
||||
|
||||
```sh
|
||||
uv run uvicorn tft.api.app:app --reload
|
||||
```
|
||||
Reference in New Issue
Block a user