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.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.