How sayonarakoto/gen-c_login works
GEN-C_LOGIN is a campus access and services system for students, faculty, HODs, librarians, and security staff. Users enter through role-based React pages and dashboards to request and review gate passes, special passes, late-entry approvals, and library services; security verifies passes, while the backend records decisions and supports notifications and generated documents. The source index and excerpts establish several controller-to-model and routing relationships. Other unsampled domain routes are retained as capability nodes, but their internal call paths are not inferred.
Main entry points: models Campus records · gatepassController.js Gate pass handling · index.js Express application · client.js API client
Components 22
Web application
- Role-based app
src/App.jsx - Role dashboards
src/Dashboards - Student pass requests
src/student/StudentActiveGatePass.jsx - Library screens
src/Pages/librarian - API client
src/api/client.js
API and access
- Express application
server/index.js - Authentication
server/middleware/auth.js - Gate pass routes
server/routes/gatepass.js - Library routes
server/routes/libraryRoutes.js - Sign-in and accounts
server/Genc.BL/controllers/authController.js
Pass workflows
- Gate pass handling
server/Genc.BL/controllers/gatepassController.js - Special pass handling
server/Genc.BL/controllers/specialPassController.js - Pass verification
server/Genc.BL/services/verificationService.js - Late entry handling
server/Genc.BL/controllers/latecomerController.js
Campus services
- Library services
server/Genc.BL/controllers/libraryController.js - Faculty and access
server/Genc.BL/controllers/departmentAccessController.js
Persistence and support
- Campus records
server/Genc.DAL/models - Audit logging
server/Genc.BL/services/auditService.js - Notifications
server/Genc.BL/services/notificationService.js - Pass documents
server/Genc.BL/services/pdfGenerationService.js
Other components
- Campus users
- MongoDB
Connections 27
- Campus users → Role-based app: uses
src/App.jsx - Role-based app → Role dashboards: routes to
src/App.jsx - Role dashboards → API client: requests data
src/Dashboards/StudentDashboard.jsx - Student pass requests → API client: submits requests
src/student/StudentActiveGatePass.jsx - Library screens → API client: uses API
- API client → Express application: sends HTTP
- Express application → Authentication: mounts routes
server/index.js - Express application → Gate pass routes: mounts routes
server/index.js - Express application → Library routes: mounts routes
server/index.js - Library routes → Authentication: requires roles
server/routes/libraryRoutes.js - Library routes → Library services: dispatches to
server/routes/libraryRoutes.js - Gate pass handling → Campus records: reads and writes
server/Genc.BL/controllers/gatepassController.js - Gate pass handling → Notifications: notifies
server/Genc.BL/controllers/gatepassController.js - Gate pass handling → Pass verification: verifies QR
server/Genc.BL/controllers/gatepassController.js - Gate pass handling → Audit logging: records events
server/Genc.BL/controllers/gatepassController.js - Special pass handling → Campus records: reads and writes
server/Genc.BL/controllers/specialPassController.js - Special pass handling → Audit logging: records events
server/Genc.BL/controllers/specialPassController.js - Special pass handling → Notifications: notifies
server/Genc.BL/controllers/specialPassController.js - Late entry handling → Campus records: reads and writes
server/Genc.BL/controllers/latecomerController.js - Late entry handling → Notifications: notifies
server/Genc.BL/controllers/latecomerController.js - Library services → Campus records: reads and writes
server/Genc.BL/controllers/libraryController.js - Library services → Pass documents: generates pass
server/Genc.BL/controllers/libraryController.js - Faculty and access → Campus records: accesses records
- Sign-in and accounts → Campus records: checks accounts
- Audit logging → Campus records: writes logs
server/Genc.BL/services/auditService.js - Pass verification → Campus records: checks pass records
server/Genc.BL/services/verificationService.js - Campus records → MongoDB: persists records