Stateless web app written in Flask to distribute account-tied private keys to MegaAntiCheat clients using Steam OpenID.
work in progress
This uses Python 3.11, but most previous versions past 3.6 should work fine.
Create venv and activate it:
python -m venv venv-311/
.\venv-311\Scripts\activate
(on Windows cmd.exe or PowerShell)
source venv-311/bin/activate
(on Bash)
Install dependencies:
python -m pip install -r requirements.txt
Set environment variables (in .env in project root), set by default in prod workflow:
FLASK_ENV
: production
or development
KD_HOST
KD_PORT
KD_DEBUG
& database stuff (use your own PostgreSQL server):
PG_HOST
PG_PORT
PG_USER
PG_PASS
PG_DB
: Database name (tentatively, "mac-kd"
)
Make a table according to db/schema.sql
before running.
Run the app:
python src/app.py
Access it from http://KD_HOST:KD_PORT/login