becodeorg / becodeorg/cli

📑 Generate PDF exports of promo's timesheet

Open
#26 0 comments 0 reactions 1 assignee Claimed by @leny View on GitHub
enhancement
Dominant language
JavaScript
Stars
6
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Asked by @LudovicPatho - they need to generate pdf exports of timesheets for the FOREM.

The new underlying structure of graph/mybecode makes the operation quite complex to perform _online_ (configuring lambda to generate pdf), while, with the cli, we can get the data (after the #24 refactor), generate local html pages, then export to pdf, using the hardware of the user.

### Command Process

> ⚠ only for _coaches_ and _EMO_

- Select promo
- Select date range (start and end)
- Generate html pages
- Export to pdf (two npm packages seems useful: [pdfmake](https://www.npmjs.com/package/pdfmake) & [pdfkit](https://www.npmjs.com/package/pdfkit))

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.