Node Pdf generator using Typescript
, AWS Lambda
and Serverless
plugin.
Bitbucket pipeline configuration included. App generates pdf based on EJS
template from src/templates
.
For single user it uploads PDF file to S3 and returns 301 for S3 url. For more than one user generator will
ZIP all PDFs and also upload file to S3
App has preconfigured local deployment using serverless-offline
and PhantomJS
for Mac and Linux
Based on serhiisol/node-decorators. Thanks @serhiisol
In order to deploy:
npm run deploy:test
Other phases are: preprod
and prod
Use path /talent?id=1&id=2
to generate PDF file for talents with given ids
Remember to add Authorization
header to each request
Run npm install
npm run dev:mac
npm run dev:linux
Server will be listening for requests on http://localhost:3000
using test
environment