first commit

This commit is contained in:
2026-06-24 14:31:42 +00:00
parent 77f946a553
commit 22b05a7a1b
10 changed files with 456 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
.PHONY: up down logs test sample preview zip
up:
docker compose up -d --build
down:
docker compose down
logs:
docker compose logs -f report-renderer gotenberg
test:
python -m pytest -q
sample:
mkdir -p output
curl -sS -X POST http://localhost:8080/render \
-H 'Content-Type: application/json' \
--data-binary @examples/sample-report.json \
-o output/sample-report.pdf
preview:
mkdir -p output
curl -sS -X POST http://localhost:8080/preview/html \
-H 'Content-Type: application/json' \
--data-binary @examples/sample-report.json \
-o output/sample-report.html