How mervin414-a/gyan works
This is a conference-hall booking and administration application. Employees register or sign in, request a hall booking, and review bookings and notifications; administrators manage employees and booking decisions, configure booking rules, and view reports. The frontend routes these workflows, while Django views implement the API and use account, booking, notification, and settings models. The sampled sources support these responsibilities, but do not show enough frontend API wiring to map most page-to-endpoint calls; those links are omitted.
Main entry points: App.jsx App routing · views.py Booking endpoints · bookings/models.py Bookings and permissions · accounts/models.py User accounts
Components 29
Web application
- App routing
frontend/src/App.jsx - Employee dashboard
frontend/src/pages/EmployeeDashboard.jsx - Booking request
frontend/src/pages/EmployeeBooking.jsx - Employee registration
frontend/src/pages/EmployeeRegister.jsx - Sign in
frontend/src/pages/Login.jsx - My bookings
frontend/src/pages/MyBookings.jsx - Admin dashboard
frontend/src/pages/AdminDashboard.jsx - Employee management
frontend/src/pages/AdminEmployees.jsx - Booking management
frontend/src/pages/AdminBookings.jsx - Admin reports
frontend/src/pages/AdminReports.jsx - Booking settings
frontend/src/pages/AdminSettings.jsx - Admin notifications
frontend/src/pages/AdminNotifications.jsx - Employee notifications
frontend/src/pages/Notifications.jsx - Activity history
frontend/src/pages/MyActivity.jsx - Profile
frontend/src/pages/Profile.jsx
Accounts and access
- Account endpoints
backend/accounts/views.py - User accounts
backend/accounts/models.py
Booking operations
- Booking endpoints
backend/bookings/views.py - Bookings and permissions
backend/bookings/models.py - Booking serializers
backend/bookings/serializers.py
Administration and insights
- Reports and settings
backend/reports/views.py - System settings
backend/reports/models.py
Notifications and messaging
- SMS service
backend/accounts/sms_service.py - Notification endpoints
backend/notifications/views.py - Notification records
backend/notifications/models.py - Notification utilities
backend/notifications/notification_utils.py - Booking email utilities
backend/bookings/email_utils.py
Other components
- Employee
- Administrator
Connections 34
- Employee → App routing: uses
frontend/src/App.jsx - Administrator → App routing: uses
frontend/src/App.jsx - App routing → Sign in: routes to
frontend/src/App.jsx - App routing → Employee registration: routes to
frontend/src/App.jsx - App routing → Employee dashboard: routes to
frontend/src/App.jsx - App routing → Booking request: routes to
frontend/src/App.jsx - App routing → My bookings: routes to
frontend/src/App.jsx - App routing → Employee notifications: routes to
frontend/src/App.jsx - App routing → Activity history: routes to
frontend/src/App.jsx - App routing → Profile: routes to
frontend/src/App.jsx - App routing → Admin dashboard: routes to
frontend/src/App.jsx - App routing → Employee management: routes to
frontend/src/App.jsx - App routing → Booking management: routes to
frontend/src/App.jsx - App routing → Admin reports: routes to
frontend/src/App.jsx - App routing → Booking settings: routes to
frontend/src/App.jsx - App routing → Admin notifications: routes to
frontend/src/App.jsx - Employee dashboard → Booking endpoints: requests bookings
- Account endpoints → User accounts: reads and updates
backend/accounts/views.py - Account endpoints → Bookings and permissions: queries bookings
backend/accounts/views.py - Account endpoints → SMS service: sends SMS
backend/accounts/views.py - Booking endpoints → Bookings and permissions: reads and writes
backend/bookings/views.py - Booking endpoints → Booking serializers: serializes bookings
backend/bookings/views.py - Booking endpoints → System settings: reads settings
backend/bookings/views.py - Booking endpoints → Booking email utilities: sends email
backend/bookings/views.py - Booking endpoints → Notification utilities: creates notifications
backend/bookings/views.py - Booking endpoints → SMS service: sends SMS
backend/bookings/views.py - Bookings and permissions → User accounts: references employees
backend/bookings/models.py - Booking serializers → Bookings and permissions: serializes
backend/bookings/serializers.py - Reports and settings → Bookings and permissions: aggregates bookings
backend/reports/views.py - Reports and settings → User accounts: aggregates employees
backend/reports/views.py - Reports and settings → System settings: reads and updates
backend/reports/views.py - Notification endpoints → Notification records: reads and updates
backend/notifications/views.py - Notification utilities → Notification records: creates records
backend/notifications/notification_utils.py - Notification records → User accounts: references recipient
backend/notifications/models.py