- python3.7+
- postgres + postgis extension
- Create and activate virtual environment for python 3.7 or more (see pyenv)
- Install python deps
pip install -r requirements_test.txt - create database and activate extension
- create
instance/local.pyfile and set settings based onoct_storage/config.py - run migrations
make upgrade - run project
python run.py
- Create
instance/local.pyfile and set settings based onoct_storage/config_docker.py - Run docker-compose
docker-compose up --build - In separate Terminal tab go to container
docker exec -it oct-storage_app_1 bash - Run migrations in container:
make upgrade
You can find OpenApi in docs/api.yaml and UI https://storage.dev.opencovidtrace.org/docs/
You can find latest deployed version for testing https://storage.dev.opencovidtrace.org/