How devaivaraja36-spec/isms works
This is an internship monitoring system with a React role-based interface and a Django backend. Students manage tasks and activities; mentors review work and track students; administrators oversee people, projects, progress, memos, and notifications. The frontend routes users to role-specific pages, while the backend models internship records and includes scheduled deadline notifications. The excerpts show routing, authentication, and notification-task internals, but not most page-to-API or backend URL wiring, so those relationships are omitted or marked unverified.
Main entry points: App.tsx Role-based routes · students/models.py Student profiles · tasks/models.py Tasks · mentors/models.py Mentor profiles
Components 25
User interface
- Role-based routes
src/App.tsx - Student workspace
src/pages/student - Mentor workspace
src/pages/mentor - Admin console
src/pages/admin - Shared pages
src/pages/common - Role navigation
src/components/layout
Identity and access
- Auth state
src/context/AuthContext.tsx - Auth API
src/api/auth.js - API client
src/api/client.js - Theme preferences
src/context/ThemeContext.tsx - Realtime context
src/context/WebSocketContext.tsx
Internship operations
- Student profiles
backend/students/models.py - Mentor profiles
backend/mentors/models.py - Internship records
backend/internships - Daily activities
backend/activities - Projects
backend/projects/models.py - Tasks
backend/tasks/models.py - File uploads
backend/files - Progress reports
backend/reports
Backend services
- Accounts
backend/accounts - Notifications
backend/notifications/models.py - Notification dispatch
backend/notifications/services.py - Deadline checker
backend/tasks/tasks.py
Other components
- User
- Remote API
Connections 28
- User → Role-based routes: opens routes
src/App.tsx - Role-based routes → Student workspace: routes to
src/App.tsx - Role-based routes → Mentor workspace: routes to
src/App.tsx - Role-based routes → Admin console: routes to
src/App.tsx - Role-based routes → Shared pages: routes to
src/App.tsx - Student workspace → Role navigation: renders
src/pages/student/MyTasks.tsx - Mentor workspace → Role navigation: renders
src/pages/mentor/ActivityReviews.tsx - Admin console → Role navigation: renders
src/pages/admin/WorkMemos.tsx - Role-based routes → Auth state: uses provider
src/main.tsx - Role-based routes → Theme preferences: uses provider
src/main.tsx - Role-based routes → Realtime context: uses provider
src/main.tsx - Auth state → Auth API: calls
src/context/AuthContext.tsx - Auth API → API client: uses client
src/api/auth.js - API client → Remote API: sends requests
src/api/client.js - Realtime context → Auth state: reads auth state
src/context/WebSocketContext.tsx - Student profiles → Mentor profiles: references mentor
backend/students/models.py - Student profiles → Internship records: references internship
backend/students/models.py - Projects → Student profiles: references student
backend/projects/models.py - Projects → Mentor profiles: references mentor
backend/projects/models.py - Tasks → Student profiles: references student
backend/tasks/models.py - Tasks → Mentor profiles: references mentor
backend/tasks/models.py - Tasks → Projects: references project
backend/tasks/models.py - Daily activities → Student profiles: references student
backend/activities/models.py - Daily activities → Mentor profiles: references mentor
backend/activities/models.py - Deadline checker → Tasks: queries and updates
backend/tasks/tasks.py - Deadline checker → Notification dispatch: dispatches alerts
backend/tasks/tasks.py - Notification dispatch → Notifications: creates records
backend/notifications/services.py - Notifications → Realtime context: pushes realtime events