Displays a list of vaccinations available in different countries
Prerequisites:
- Docker Desktop (macOS and Windows) / Docker engine and docker-compose (Linux)
- Python 3
Configure development environment:
- Run
pip install -r src/requirements-dev.txt
- Install pre-commit hook:
pre-commit install
- (Optional) run hook:
pre-commit run --all-files
Running the app locally:
- Start Docker Desktop / the daemon
- While in the root directory of this project, run the database container:
docker compose up
- Run
src/backend/covid19/init.sql
to create the database - Move into the
covid19
directory:cd src/backend/covid19
- Apply Django database migrations:
python manage.py migrate
- Start and run the development server:
python src/backend/covid19/manage.py runserver
To access the database via http://127.0.0.1:8000/admin/
:
- Create a superuser:
python manage.py createsuperuser
- Login using the username and password you created
To access psql of the running database container:
- Find the container ID:
docker ps -a
docker exec -it <container_id> psql -U dbuser -d covid19 --password
- Enter in the database password:
dbpassword