This repository holds the code for wikispeedruns.com.
- Python 3.7 or greater
- MySQL Server Download here
We recommend creating a Python virtual environment for running the server.
python -m venv env
For Windows Powershell:
./env/Scripts/Activate.ps1
For Linux
source env/bin/activate
Then install the requirements (with your virtual environment activated)
pip install -r requirements.txt
There are a number of scripts to help setup the web app in scripts.
Once the MySQL server is running, you need to create the database and tables
cd scripts
python createDB.py
There is also an interactive script (follow the instructions in the scripts) to create a configuration file and set up and admin account.
cd scripts
python configure.py
Set the environment variable FLASK_ENV
in whaterver command prompt you use plan to use
for running the flask server. This will allow the local instance to reload automatically
when files are changed.
For example, in Linux
export FLASK_ENV="development"
Or in Windows Powershell
$env:FLASK_ENV="development"
From the top level directory
flask run