/srb2_highscores

Website to search and filter highscores from mysql

Primary LanguagePythonThe UnlicenseUnlicense

SRB2 Highscores

Frontend for the data extracted using https://github.com/JJK96/SRB2/tree/speedrun_server

And a page for voting on maps

Setup

  1. clone the repository including submodules
git clone --recursive <url>

or

git clone <url>
git submodule update --init --recursive
  1. Install the dependencies in requirements.txt.
pip install -r requirements.txt
  1. Create settings.py with the following contents:
username = "<database_username>"
password = "<database_password>"
host = "<database_hostname>"
database = "<database_name>"
  1. Build front-end
cd client
npm install
npm run dev
  1. python app.py

Alternatively wsgi can be used to run it in combination with an HTTP server.

Upgrade the database

If a change has been made to the database, the migrations should be run using

flask db upgrade