Install the dependencies locally:
poetry install
poetry run uvicorn src.main:app --reload --env-file secrets.txt
Or run it with docker:
docker build -t wh-dispatcher .
docker run -it wh-dispatcher
Run tests:
poetry run pytest
To mimick an arriving payload:
curl -X 'POST' \
'http://http://0.0.0.0:8000/webhook/1' \
-d '{"42": "your_json_data_should_go_here"}'