Frontend for the data extracted using https://github.com/JJK96/SRB2/tree/speedrun_server
And a page for voting on maps
- clone the repository including submodules
git clone --recursive <url>
or
git clone <url>
git submodule update --init --recursive
- Install the dependencies in
requirements.txt
.
pip install -r requirements.txt
- Create
settings.py
with the following contents:
username = "<database_username>"
password = "<database_password>"
host = "<database_hostname>"
database = "<database_name>"
- Build front-end
cd client
npm install
npm run dev
python app.py
Alternatively wsgi can be used to run it in combination with an HTTP server.
If a change has been made to the database, the migrations should be run using
flask db upgrade