This service is a digital version Lung Cancer Screening questionnaire and risk calculator.
The following software packages, or their equivalents, are expected to be installed and configured:
- Docker container runtime or a compatible tool, e.g. Podman,
- GNU make 3.82 or later
- asdf version manager for managing tool versions (ensure asdf is configured in your shell)
-
Copy the environment file:
cp .env.example .env
-
Setup the pre-commit hooks and install dependencies:
make config
Note: If you encounter Python installation issues on macOS, you may need to install Python with SSL flags:
CFLAGS="-I$(brew --prefix openssl@3)/include" \ LDFLAGS="-L$(brew --prefix openssl@3)/lib" \ PKG_CONFIG_PATH="$(brew --prefix openssl@3)/lib/pkgconfig" \ asdf install python 3.13.7
The project runs locally inside docker. Please ensure you have docker installed.
Apply the database migrations:
make dev-migrateRun the application:
make dev-runThere are make tasks for you to configure to run your tests. Run make test to see how they work. You should be able to use the same entry points for local development as in your CI pipeline.
- Make sure you have pre-commit running so that pre-commit hooks run automatically when you commit - this should have been set up automatically when you ran
make config. - Consider switching on format-on-save in your editor (e.g. Black for Python)
Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation. See LICENCE.md.
Any HTML or Markdown documentation is © Crown Copyright and available under the terms of the Open Government Licence v3.0.