Practice for the Austrian high school certificate exam (matura) in maths.
export FLASK_APP=app/__init__.py
export FLASK_DEBUG=1
flask fab create-admin
flask run
Dependencies are managed with uv (pyproject.toml and uv.lock).
Install all dependencies including the development ones
uv sync
(add new ones with uv add <package>, update the lock file with uv lock --upgrade) and install the pre-commit hooks
pre-commit install
flask db migrate -m "message."
flask db upgrade
Create database and user:
sudo -u postgres psql
# create database matheueben;
# create user mathesuper with encrypted password '123456';
# grant all privileges on database matheueben to mathesuper;
# alter database matheueben owner to mathesuper;Import database backup:
sudo -u postgres psql matheueben < backup.sqlor in the container:
psql -U db_user -h postgres -p 5432 -d db_database < backup.sqlClean up database:
flask fab security-cleanup
flask fab create-dbA live instance of the project is reachable at matheworkout.at.