How kiransinha872/hostelandmessmanagementsystem works
This is a server-rendered hostel allotment and mess-management application. Students register or sign in, request or vacate rooms, raise and track requests, view menus, and submit meal feedback; wardens manage blocks, rooms, residents, requests, menus, and feedback. Express routers dispatch to controllers, which apply role checks and use Mongoose models for persisted state. The README documents capabilities beyond the sampled excerpts; those are represented at the subsystem level, while uncertain controller-to-model details are not expanded. The graph omits deployment and setup machinery.
Main entry points: adminController.js Warden operations · studentController.js Student portal · server.js Web application · User.js User records
Components 22
Identity and access
- Authentication routes
routes/authRoutes.js - Authentication
controllers/authController.js - JWT and roles
middleware/auth.js - Login and registration
views/auth
Hostel accommodation
- Student routes
routes/studentRoutes.js - Student portal
controllers/studentController.js - Student pages
views/student - Vacate helper
utils/vacateStudent.js - Block records
models/Block.js - Room records
models/Room.js
Requests and oversight
- Warden routes
routes/adminRoutes.js - Warden operations
controllers/adminController.js - Warden pages
views/admin - Request records
models/Request.js
Mess and feedback
- Menu records
models/Menu.js - Feedback records
models/Feedback.js
Persistence
- User records
models/User.js - Database connection
config/db.js
Other components
- Student
- Warden
- Web application
server.js - MongoDB
Connections 32
- Student → Web application: uses portal
- Warden → Web application: uses portal
- Web application → Authentication routes: dispatches
- Web application → Student routes: dispatches
- Web application → Warden routes: dispatches
- Web application → Database connection: connects
- Authentication routes → Authentication: dispatches
- Student routes → JWT and roles: checks access
- Student routes → Student portal: dispatches
- Warden routes → JWT and roles: checks access
- Warden routes → Warden operations: dispatches
- Authentication → Login and registration: renders
- Authentication → User records: reads and writes
- JWT and roles → User records: loads account
- Student portal → Student pages: renders
- Student portal → User records: reads and writes
- Student portal → Room records: reads
- Student portal → Request records: reads and writes
- Student portal → Menu records: reads
- Student portal → Feedback records: reads and writes
- Student portal → Vacate helper: calls
- Vacate helper → User records: updates
- Vacate helper → Room records: updates
- Warden operations → Warden pages: renders
- Warden operations → Block records: reads and writes
- Warden operations → Room records: reads and writes
- Warden operations → User records: reads and writes
- Warden operations → Request records: reads and writes
- Warden operations → Menu records: reads and writes
- Warden operations → Feedback records: reads
- Warden operations → Vacate helper: calls
- Database connection → MongoDB: connects