Build quick report on nodejs server side with EJS template and ChartJS
· 3 min read
Build quick report on nodejs server side with EJS template and ChartJS
Concepts:
- Define report template like as HTML view by EJS syntax
- Draw chart by ChartJS into HTML view template
- Using EJS engine to render HTML view from HTML template
- Create new Chromium instance as headless browser using Puppeteer to render HTML template
- Create PDF from headless browser view
- Create report blob and free resources.