Registry of blood donors for Czech Red Cross in Frýdek-Místek.
- Create and activate a new virtual environment
- Install all development dependencies via
pip install -r requirements/dev.txt
- Create a config file
registry/.env
with the following content:
FLASK_ENV=development
DATABASE_URL=sqlite:///database.sqlite
SECRET_KEY=<some_random_string_here>
-
Prepare a new database and apply all existing migrations via
flask db upgrade
-
Add a user account via
flask create-user <email> <password>
-
You can install anonymized test data via
flask install-test-data
(needs empty database and with all migrations applied) -
run the app with
flask run
There are currently no tests but you can run linters at least via tox -e lint
.