Skip to main content

One post tagged with "backend"

View All Tags

Build quick report on nodejs server side with EJS template and ChartJS

· 3 min read
Niko
Software Engineer @ Naver

Build quick report on nodejs server side with EJS template and ChartJS

Concepts:

  1. Define report template like as HTML view by EJS syntax
  2. Draw chart by ChartJS into HTML view template
  3. Using EJS engine to render HTML view from HTML template
  4. Create new Chromium instance as headless browser using Puppeteer to render HTML template
  5. Create PDF from headless browser view
  6. Create report blob and free resources.