Giter Club home page Giter Club logo

pdf-generator's Introduction

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

pdf-generator's People

Contributors

pawelszczerbicki avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.