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
Install additional dependencies
pip install -r requirements-dev.txt
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.sql
Clean up database:
flask fab security-cleanup
flask fab create-db
A live instance of the project is reachable at matheworkout.at.