Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: download a zipball of resumes #39

Closed
JaneIRL opened this issue Aug 26, 2023 · 1 comment
Closed

Feature: download a zipball of resumes #39

JaneIRL opened this issue Aug 26, 2023 · 1 comment
Assignees
Labels
c-feature New feature or request

Comments

@JaneIRL
Copy link
Collaborator

JaneIRL commented Aug 26, 2023

Feature

Add an API route somewhere under admin (e.g. create a file src/app/admin/resumes/route.ts).

The API route should:

  1. Gather all resumes from the users collection in the database
    • The resumes are stored under the application.resume field in base64 format if provided. e.g. data:application/pdf;base64,JVBERi0xLjQKJdPr6eEKMSAwI...
    • We could filter out all the values that don't start with data:application/pdf;base64,
  2. Create a zipball (may use the jszip package or something else) with all the resumes, each resume stored with the name ${application.firstName} ${application.lastName}.pdf inside of the zipball
  3. Send the zipball to the browser
@JaneIRL JaneIRL added the c-feature New feature or request label Aug 26, 2023
@JaneIRL
Copy link
Collaborator Author

JaneIRL commented Sep 3, 2023

Closed by 9dc7f3a.

@JaneIRL JaneIRL closed this as completed Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants