Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SPT Leaderboard

A rewrite of SPT Leaderboard Website and Backend

Quick Setup [Backend]

cd backend
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
uvicorn app.main:app --reload

You 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;

PostgreSQL (Production)

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

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

DEBUG uses SQLite DB.

[Frontend]

cd frontend
npm install (no longer needed after first run)
npm run dev

Vue App runs at http://localhost:5173.

About

A rewrite of SPT Leaderboard Website, and Backend

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages