Generate PDF using nodejs, react and puppeteer
To execute the project, you need to first install its dependencies:
yarn install
or
npm install
To run the project, you need to execute the web app in one terminal:
yarn start
or
npm run start
After having the project running (port 3000), you need to execute the script to generate the PDF. In another terminal, run:
yarn pdf
or
npm run pdf
The PDF file will be created in tmp folder
Here's an example of a generated PDF