Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 1 KB

README.md

File metadata and controls

36 lines (27 loc) · 1 KB

PDF Generation PoC With Puppeteer and Go

Puppeteer CLI

puppeteer cli is a cli wrapper for generating pdfs and take a screenshot with Puppeteer.
To install puppeteer cli globally,

npm install -g puppeteer-cli

For more information Puppeteer-CLI

Mustache

Mustache is a simple, logic-less template engine. due to it's simplicity, I chose it to use in this PoC
For more information Mustache and Mustache Specs
Mustache package used in this PoC

Setup

Step 01:
Install puppeteer globally

Step 02:
Clone the repo

Step 03: install the relevant packages
go mod tidy
go mod vendor

Step 04:
Run the application

go run main.go