Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Latest commit

 

History

History
14 lines (14 loc) · 782 Bytes

README.md

File metadata and controls

14 lines (14 loc) · 782 Bytes

node-pdf-generator

Node.js service for generating PDF via URL.

Features:

  • Pure Node.js
  • Dockerized to run in production mode
  • Includes Basic Authentication strategy
  • Logging via morgan
  • Log-colouring via chalk
  • Node.js friendly ESLint setup
  • Puppeeter that just works in Docker

How to run:

Install LTS Docker, build the image and run the container with the option -p 8080:8080

API:

Simply send POST request with a correct Authorization header. Currently the service supports only the following query paramater ?orientation=landscape, but you can easily setup your own ones!