tssbot backend
Rust backend API service for Toothless' TSS Bot.
It reads two SQLite databases:
TSS_BATTLES_DBfortss_battles.dbTSS_TEAMS_DBfortss_teams.dbBACKEND_HOSTbind host, default127.0.0.1BACKEND_ALLOWED_ORIGINScomma-separated browser origins allowed by CORS
Both paths can be absolute or relative to the repo root when run through the root scripts/PM2.
It currently exposes:
GET /healthGET /api/tss/leaderboard/teams?limit=100GET /api/tss/teams/resolve?name=...GET /api/tss/teams/search?q=...&limit=10GET /api/tss/teams/:teamGET /api/tss/teams/:team/historyGET /api/tss/teams/:team/games
Local development
npm run dev:backend
The backend listens on http://127.0.0.1:6000 by default. Override with BACKEND_PORT and BACKEND_HOST.
Production build
npm run build:backend