Sometimes, you just need the header.
- Change the
SECRET_KEY
insrc/brieffenster.py
. - ./build-docker
- ./run-docker
- Go to the frontend
The PDF generation can be automated using a HTTP POST request, using i.e. curl
:
curl -X POST 'http://localhost:10000/generate/' \
-F "abs_name=Erika Mustermann" \
-F "abs_street=Heidestraße 1" \
-F "abs_city=51477 Köln" \
-F "empf_name=Bundeskanzleramt" \
-F "empf_street=Willy-Brand-Straße 1" \
-F "empf_city=10577 Berlin"
This project is licensed under the MIT License. See LICENSE.md