How hemant-kumar24/studnest works
StudNest connects student accommodation discovery to room bookings and payments, with ongoing account, review, complaint, and notification workflows. Students and admins use the React client, which calls Express APIs backed by MongoDB; payment and image storage also rely on external providers. The README documents broader management features than the sampled controller excerpts, so those are represented at their documented module paths without inferring internal calls beyond the evidence.
Main entry points: index.js REST API server · db.js MongoDB records · reviewController.js Reviews and ratings · hostelController.js Hostel discovery
Components 25
React client
- Web application
Frontend/src/App.jsx - Role-based pages
Frontend/src/routes/AppRoutes.jsx
API and access
- Authentication
Backend/config/authController.js - REST API server
Backend/index.js - MongoDB records
Backend/config/db.js
Accommodation lifecycle
- Booking management
Backend/controllers/bookingController.js - Hostel discovery
Backend/controllers/hostelController.js - Room management
Backend/controllers/roomController.js - Nearby search
Backend/controllers/locationController.js - Booking payments
Backend/controllers/paymentController.js
Student services
- Reviews and ratings
Backend/controllers/reviewController.js - Complaint support
Backend/controllers/complaintController.js - Notifications
Backend/utils/notificationService.js - Student account
Backend/controllers/dashboardController.js
Admin operations
- Admin management
Backend/controllers/adminController.js - Booking oversight
Backend/controllers/bookingController.js - Listing oversight
Backend/controllers/adminHostelController.js - Payment oversight
Backend/controllers/adminPaymentController.js - Review moderation
Backend/controllers/adminReviewController.js - Complaint handling
Backend/controllers/adminComplaintController.js - Dashboard analytics
Backend/controllers/adminDashboardController.js
Other components
- Student
- Admin
- Razorpay
- Cloudinary
Connections 42
- Student → Web application: uses
- Admin → Web application: uses
- Web application → Role-based pages: renders
- Role-based pages → REST API server: calls APIs
- REST API server → Authentication: dispatches
- REST API server → Hostel discovery: dispatches
- REST API server → Room management: dispatches
- REST API server → Nearby search: dispatches
- REST API server → Booking management: dispatches
- REST API server → Booking payments: dispatches
- REST API server → Reviews and ratings: dispatches
- REST API server → Complaint support: dispatches
- REST API server → Notifications: dispatches
- REST API server → Student account: dispatches
- REST API server → Admin management: dispatches
- REST API server → Booking oversight: dispatches
- REST API server → Listing oversight: dispatches
- REST API server → Payment oversight: dispatches
- REST API server → Review moderation: dispatches
- REST API server → Complaint handling: dispatches
- REST API server → Dashboard analytics: dispatches
- Authentication → MongoDB records: reads/writes
- Booking management → MongoDB records: reads/writes
- Hostel discovery → MongoDB records: reads/writes
- Room management → MongoDB records: reads/writes
- Nearby search → MongoDB records: queries
- Booking payments → MongoDB records: reads/writes
- Booking payments → Razorpay: processes payments
- Hostel discovery → Cloudinary: uploads images
- Reviews and ratings → MongoDB records: reads/writes
- Reviews and ratings → Booking management: checks eligibility
- Reviews and ratings → Notifications: notifies admins
- Complaint support → MongoDB records: reads/writes
- Notifications → MongoDB records: stores notices
- Student account → MongoDB records: reads/writes
- Admin management → MongoDB records: reads/writes
- Booking oversight → MongoDB records: reads/writes
- Listing oversight → MongoDB records: reads/writes
- Payment oversight → MongoDB records: reads
- Review moderation → MongoDB records: reads/writes
- Complaint handling → MongoDB records: reads/writes
- Dashboard analytics → MongoDB records: queries