Using NodeJS and Puppeteer.
Creating a fake data server with ExpressJS, EJS and TailwindCSS.
- Add this files do any directory
- Run
npm install
- Run
npm start
to start server (port 3000) - Run
npm run print
to create report.pdf file
#NeverStopLearning https://app.rocketseat.com.br
it's what you will use to access the get route created at the server.js, the print.js sends a get request to that route in order to get the html content from it, to create the pdf