https://api-convertpdf-cpxehuk7za-et.a.run.app
minimal ram to run this app is 1gb under than the app will terminated
steps:
- build container with cloud build
- image will store in container registry
- deploy app with cloud run use image from container registry
show home
curl localhost:8000
convert html to pdf
curl -d "link=<url>" localhost:8000/convertpdf
download result pdf
curl localhost:8000/download/<req_id>.pdf
getting started
setup environment deno in vscode https://stackoverflow.com/questions/65115527/how-can-i-avoid-the-an-import-path-cannot-end-with-ts-extension-error-in-vsco
install denon to watch change of deno https://github.com/denosaurs/denon
denon run -A index.ts
docker compose down && docker compose up --build -d