Skip to content

pawelszczerbicki/pdf-generator

Repository files navigation

PDF generator

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

Before deploy add your domain in serverless.yml file changing DOMAIN placeholder

Before deploy export AWS_SECRET_ACCESS_KEY and AWS_ACCESS_KEY_ID

Deploy

In order to deploy: npm run deploy:test Other phases are: preprod and prod

Usage

Use path /talent?id=1&id=2 to generate PDF file for talents with given ids Remember to add Authorization header to each request

Local run

Run npm install

On mac machine use:

npm run dev:mac

On linux machine use:

npm run dev:linux Server will be listening for requests on http://localhost:3000 using test environment

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published