How hafedefheij/registration-system-v3 works
Project type and purpose
• This is a full-stack web application: a university course registration system built with Node.js, Express, and SQLite.
• It provides a static frontend (HTML/JS/CSS) for two user roles—Admin and Student—and a RESTful API backend for authentication, data management, and business logic.
File structure
• Top-level directories:
• .data / server – SQLite database files and database initialization code (persistence layer).
• public – Static assets subdivided into admin UI pages, student UI pages, shared CSS, JS, images.
• Root scripts:
• index.js / server/server.js – Main entry points that configure Express, middleware (static serving, body parsing, authentication), and REST routes.
• Helper scripts like check-db.js, read-users.js, update.js – one-off maintenance or data-migration utilities.
• Config/build files:
• package.json / package-lock.json – Node dependencies and scripts.
• sample.env – Environment variables (e.g., PORT, database paths).
README for additional insights
• Key features: student course registration, admin CRUD for courses/students/departments, prerequisites, enrollment tracking.
• API endpoints: grouped under /api/login, /api/admin/..., /api/student/....
• Database persistence: single SQLite instance stored in .data for production (Glitch) and server folder for local.