# tssbot.web-backend Rust/Axum API server for the TSS Bot web platform. Serves tournament, team, player, and game data via REST endpoints backed by SQLite. ## Build ```bash cargo build --release ``` ## Run ```bash cp example.env .env # edit with your values cargo run --release ``` The backend reads `.env` from the parent directory or the current directory. ## Environment Variables | Variable | Description | |---|---| | `BACKEND_PORT` | Port to listen on (default: 6000) | | `BACKEND_HOST` | Bind address (default: 127.0.0.1) | | `BACKEND_ALLOWED_ORIGINS` | Comma-separated CORS origins | | `TSS_BATTLES_DB` | Path to battles SQLite database | | `TSS_TEAMS_DB` | Path to teams SQLite database | | `TSS_TOURNAMENTS_DB` | Path to tournaments SQLite database | | `VEHICLE_TRANSLATIONS_JSON` | Path to vehicle name translations | | `VEHICLE_DATA_CACHE_JSON` | Path to vehicle data/icon cache |