MESH Sandbox
MESH sandbox for local testing of NHS Digital's MESH API.
Installation
Example use
pip
pip install mesh-sandbox
STORE_MODE=file MAILBOXES_DATA_DIR=/tmp/mesh uvicorn mesh_sandbox.api:app --reload --port 8700 --workers=1
curl http://localhost:8700/health
docker compose
services:
mesh_sandbox:
build:
context: https://github.com/NHSDigital/mesh-sandbox.git#refs/tags/v1.0.4
ports:
- "8700:443"
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
healthcheck:
test: curl -ksf https://localhost/health || exit 1
interval: 3s
timeout: 10s
environment:
- SHARED_KEY=TestKey
- SSL=yes
volumes:
- ./src/mesh_sandbox/store/data/mailboxes.jsonl:/app/mesh_sandbox/store/data/mailboxes.jsonl:ro
- ./src/mesh_sandbox/test_plugin:/app/mesh_sandbox/plugins:ro
Guidance for contributors
contributing