Help needed with my school project due soon!
I’m working on a learning management system using PostgreSQL, Express, React, and Node.js. I’m stuck on how to make certificates for students who finish courses.
Here’s what I want to do:
- Make a certificate when a student completes a course
- Put student info (name, email) and course details (title, teacher, finish date) on the certificate
I’ve looked online but can’t find good examples for PERN stack. I’m not sure what’s the best way to do this.
Can anyone suggest:
- Good libraries for making certificates with PERN?
- Tips for a beginner to do this right?
I’m new to coding, so any advice on making my code better is welcome. Thanks!
Oh wow, that sounds like a cool project! 
I’m super curious about how your LMS is coming along. Have you thought about using something like html-pdf or puppeteer? They might be easier to work with for generating certificates, especially if you’re already familiar with HTML and CSS.
Quick question - how are you handling the course completion tracking in your database? That could be key for triggering the certificate generation at the right time.
Also, have you considered adding some extra flair to the certificates? Maybe like a QR code that links to a verification page, or the ability for students to share their achievement on LinkedIn? Could be a fun addition if you have time!
Keep us posted on how it goes! I’d love to hear more about your project as it develops. 
hey, i rly tink you can use pdfkit with nodejs. this grabs course and student info from postgresql, then outputs a pdf certificate. try playing around with layout and design.
hope it helps, good luck.
For generating certificates in a PERN stack, consider combining Node.js libraries for optimal results. PDFKit is a reliable choice for creating PDFs, and node-canvas might be helpful if you need more advanced graphics.
A typical approach is to start by querying your PostgreSQL database for course completion data, then using PDFKit to generate a certificate template that incorporates student and course details. Remember to secure your certificate generation process and include unique elements like QR codes for verification.
Modularizing your code and managing asynchronous operations properly will also improve maintainability.