Requires:
- Python >= 3.12
uv==0.9.*installed globally.
$ uv sync --dev
$ playwright installRun tests:
$ uv run pytestRun the service:
$ uv run uvicorn postcode_lookup.app:app --reloadVisit http://127.0.0.1:8000
We pull HTML, JS and CSS from donor pages on the EC site.
To update these (for example, if there's a change to the design), run:
uv run lib/template_generator/generate_base_template.pyThis will update various front end assets in postcode_lookup/static.
See lib/template_generator/README.md for more information about this script.