How gayathriijs/lab_management_system works
LabTrack supports teacher-managed laboratory operations and student participation. The user workflow runs from role-based sign-in through lab, experiment, attendance, submission, quiz, and performance views, with Flask routes applying business rules and MySQL-backed persistence. File uploads support syllabus, experiment, record, and output materials. The README documents major capabilities not all visible in the sampled excerpts; those branches are retained, while links without direct relationship evidence are omitted or marked unverified.
Main entry points: models.py Database access · teacher_routes.py Teacher routes · App.jsx Routes and layout · student_routes.py Student routes
Components 21
Web application
- Routes and layout
lab-management-frontend/src/App.jsx - Sign-in pages
lab-management-frontend/src/pages/auth - Auth context
lab-management-frontend/src/context/AuthContext.jsx - Teacher workflows
lab-management-frontend/src/pages/teacher - Student workflows
lab-management-frontend/src/pages/student - Auth API client
lab-management-frontend/src/api/auth.js - Teacher API client
lab-management-frontend/src/api/teacher.js - Student API client
lab-management-frontend/src/api/student.js - HTTP client
lab-management-frontend/src/api/axios.js
API and domain
- Authentication routes
backend/app/routes/auth_routes.py - Teacher routes
backend/app/routes/teacher_routes.py - Student routes
backend/app/routes/student_routes.py - JWT and roles
backend/app/auth.py - Quiz generation
backend/app/services/quiz_service.py - Performance metrics
backend/app/services/performance_service.py - File handling
backend/app/utils.py
Persistence and files
- Database access
backend/app/models.py - MySQL
- Uploaded materials
backend/app/config.py
Other components
- Teacher
- Student
Connections 31
- Routes and layout → Auth context: provides auth
lab-management-frontend/src/App.jsx - Routes and layout → Sign-in pages: routes to
lab-management-frontend/src/App.jsx - Routes and layout → Teacher workflows: routes to
lab-management-frontend/src/App.jsx - Routes and layout → Student workflows: routes to
lab-management-frontend/src/App.jsx - Auth context → Auth API client: calls
lab-management-frontend/src/context/AuthContext.jsx - Auth API client → HTTP client: uses
lab-management-frontend/src/api/auth.js - Teacher workflows → Teacher API client: calls
lab-management-frontend/src/pages/teacher/TeacherDashboard.jsx - Student workflows → Student API client: calls
lab-management-frontend/src/pages/student/MyLabs.jsx - Teacher API client → HTTP client: uses
lab-management-frontend/src/api/teacher.js - Student API client → HTTP client: uses
lab-management-frontend/src/api/student.js - Teacher → Routes and layout: uses
- Student → Routes and layout: uses
- Auth API client → Authentication routes: HTTP requests
- Teacher API client → Teacher routes: HTTP requests
- Student API client → Student routes: HTTP requests
- Authentication routes → JWT and roles: authenticates
backend/app/routes/auth_routes.py - Teacher routes → JWT and roles: guards routes
backend/app/routes/teacher_routes.py - Student routes → JWT and roles: guards routes
backend/app/routes/student_routes.py - Teacher routes → Quiz generation: generates quizzes
backend/app/routes/teacher_routes.py - Teacher routes → Performance metrics: requests metrics
backend/app/routes/teacher_routes.py - Student routes → Performance metrics: requests metrics
backend/app/routes/student_routes.py - Teacher routes → File handling: handles files
backend/app/routes/teacher_routes.py - Student routes → File handling: handles files
backend/app/routes/student_routes.py - JWT and roles → Database access: looks up users
backend/app/auth.py - Authentication routes → Database access: reads and writes
backend/app/routes/auth_routes.py - Teacher routes → Database access: reads and writes
backend/app/routes/teacher_routes.py - Student routes → Database access: reads and writes
backend/app/routes/student_routes.py - Performance metrics → Database access: queries metrics
backend/app/services/performance_service.py - Quiz generation → Database access: uses data
backend/app/services/quiz_service.py - Database access → MySQL: queries
backend/app/models.py - File handling → Uploaded materials: saves files
backend/app/utils.py