AWS lambda PDF generator example
The purpose of this repository is to demonstrate a PDF generator inside
AWS lambda with chrome-aws-lambda, serverless, pug and knex. This has been done as part of the article in dev.to
- Initialize serverless either inside project or globally (after installing package globally) with
- Modify PUG template inside src/
- Fetch data for the template. In this repository we use knex and postgresSQL. For production use I would suggest to add database username and password to environmental variables either inside deployment platform or in AWS.
- Deploy with
npm run deploy:dev