Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 810 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 810 Bytes

donors_registry

Registry of blood donors for Czech Red Cross in Frýdek-Místek.

Instalation

  1. Create and activate a new virtual environment
  2. Install all development dependencies via pip install -r requirements/dev.txt
  3. Create a config file registry/.env with the following content:
FLASK_ENV=development
DATABASE_URL=sqlite:///database.sqlite
SECRET_KEY=<some_random_string_here>
  1. Prepare a new database and apply all existing migrations via flask db upgrade

  2. Add a user account via flask create-user <email> <password>

  3. You can install anonymized test data via flask install-test-data (needs empty database and with all migrations applied)

  4. run the app with flask run

Testing

There are currently no tests but you can run linters at least via tox -e lint.