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 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
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