Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsamaya/lambda-pdfkit
https://github.com/tsamaya/lambda-pdfkit
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tsamaya/lambda-pdfkit
- Owner: tsamaya
- License: mit
- Created: 2022-07-16T15:51:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T20:16:56.000Z (over 1 year ago)
- Last Synced: 2024-05-02T04:34:35.142Z (7 months ago)
- Language: JavaScript
- Size: 1.58 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lambda-pdfkit
s3 bucket created
aws creds setnpm i
npx serverless deploy
```bash
➜ lambda-pdfkit git:(main) ✗ npx serverless deployDeploying pdf-generator to stage dev (eu-west-1)
✔ Service deployed to stack pdf-generator-dev (39s)
endpoint: POST - https://xxxxxxxxxx.execute-api.eu-west-1.amazonaws.com/generatePDF
functions:
generatePDF: pdf-generator-dev-generatePDF (985 B)
layers:
Pdfkit: arn:aws:lambda:eu-west-1:xxxxxxxxxxxx:layer:Pdfkit:1Monitor all your API routes with Serverless Console: run "serverless --console"
``````bash
curl -X POST 'https://xxxxxxxxxx.execute-api.eu-west-1.amazonaws.com/generatePDF' -H 'Content-Type: application/json' -d '{"title":"Lorem Ipsum","text":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque blandit interdum urna et vulputate. Fusce placerat leo consequat sagittis ultrices. Duis ut ornare nibh, sed pretium purus. Pellentesque consequat consectetur elementum. In hac habitasse platea dictumst. Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque luctus, tellus in pellentesque sagittis, libero magna finibus urna, non tincidunt massa tortor eu sapien."}'
```