How gideon-jacob/pec-student-server works
This is a small Express server for student, faculty, and administrative academic APIs. The principal implemented workflow is a student timetable request: the server mounts the student routes, which validate the requested week, read student and academic records from MongoDB, and assemble a timetable response. Faculty and admin routes exist, but their shown handlers are placeholders. The source index confirms the student route references shared academic data definitions; the README is empty, and unsampled route logic is not inferred here.
Main entry points: server.ts Express Server · student/index.ts Student Routes · admin/index.ts Admin Routes · faculty/index.ts Faculty Routes
Components 8
HTTP Server
- Express Server
server.ts
Academic APIs
- Admin Routes
routes/admin/index.ts - Faculty Routes
routes/faculty/index.ts - Student Routes
routes/student/index.ts - Date Helpers
routes/student/constants.ts
Academic Data
- Academic Records
data.ts - MongoDB
Other components
- API Caller
Connections 8
- API Caller → Express Server: sends requests
server.ts - Express Server → Admin Routes: mounts routes
server.ts - Express Server → Faculty Routes: mounts routes
server.ts - Express Server → Student Routes: mounts routes
server.ts - Express Server → MongoDB: configures client
server.ts - Student Routes → MongoDB: reads records
routes/student/index.ts - Student Routes → Date Helpers: uses date helpers
routes/student/index.ts - Student Routes → Academic Records: references definitions
routes/student/index.ts