A bulk certificate generator written in Node. The idea is to use a set of PDF templates (for different types of certificates eg: participation, winner etc.) and a CSV file to bulk export certificates.
The inspiration of working on this idea came in while organising HackNU 2.0 for students of NIIT University from 27th May - 3rd June, 2020.
To build this project locally, you should have the following dependencies installed:
- Node.js (Built and tested on
v10.16.3; recommended) - npm (
6.14.4)
-
Clone this repository on your machine:
git clone https://github.com/harshit-budhraja/bulk-certifier.git && cd bulk-certifier -
Install package dependencies:
npm install -
Set your
NODE_ENV:export NODE_ENV=dev -
Finally, run the app:
node src/app.js
-
Create a folder
productioninside theassetsfolder and copy the necessary files in it. By default, this folder is added to.gitignoreso it won't be committed to git. -
List of files required:
2.1 Font files atproduction/fonts/
2.2 Template files atproduction/templates/<CERT_TYPE>.pdf
2.3 Input CSV file atproduction/all.csv. (You can find a sample atdev/all.csv) -
Set your
NODE_ENV:export NODE_ENV=production -
Run the app:
node src/app.js