Install required libraries using either Yarn:
yarn add puppeteer
yarn add locate-chrome
yarn add ejs
or npm:
npm install puppeteer
npm install locate-chrome
npm install ejs
- Clone the repo
cd nestjs-puppeteer-ejs
yarn
yarn run start:dev
oryarn run start
- Hit
POST
request on endpointlocalhost:3000/invoice
using body example givent in/src/invoice/invoice.json
file
Example Template Codesandbox