A web application for browsing and viewing PDF certificates stored in the certs/ directory.
- Node.js (v18 or higher recommended, e.g., v20 LTS)
- Verify:
node -vandnpm -v
- Verify:
- Bower for installing
pdfjs-dist- Verify:
bower -v
- Verify:
- A modern web browser (e.g., Chrome, Firefox, Edge)
-
Install Dependencies
- Install Node.js dependencies and Bower:
npm install npm install -g bower bower install
- Install Node.js dependencies and Bower:
-
Start the Server
- Run the Node.js/Express server:
node server.js
- The server runs at
http://localhost:8000.
- Run the Node.js/Express server:
-
Access the Application
- Open a browser and navigate to
http://localhost:8000. - Browse folders (e.g.,
Professional,Academic) or click a PDF (e.g.,Profile.pdf) to view it in a modal with auto-sizing and navigation.
- Open a browser and navigate to
- The application requires
pdfjs-dist#^2.16.105for PDF rendering. Ensurebower_components/pdfjs-dist/build/pdf.min.jsandpdf.worker.min.jsare present. - Avoid spaces and special characters in the project path to prevent file access issues.