A rewrite of SPT Leaderboard Website and Backend
cd backend
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
uvicorn app.main:app --reloadYou can skip the first step if you already have an easy way to open terminal inside backend folder. (ie with IDE)
The API runs at http://localhost:8000;
The backend reads DATABASE_URL from backend/.env. Copy the example file and update the credentials for your local PostgreSQL server:
Copy-Item .env.example .envThe default example expects a database named spt_leaderboard on localhost:5432 with the postgres user. Create that database before starting the API. PostgreSQL is required.
cd frontend
npm install (no longer needed after first run)
npm run devVue App runs at http://localhost:5173.