How shravan6778/tuition_companion works
This is an educational platform for teachers, students, and parents, combining textbook-library management with classrooms, assignments, doubts, quizzes, checks, and progress views. Teachers manage books and rooms, assign work, and review student activity; students join rooms, link books, ask textbook-grounded questions, and complete assessments; parents link to students and view their children. The graph reflects explicit route calls and frontend routing where shown. Several backend subsystems are represented from the source index, so their internal flow is omitted where no relationship was evidenced.
Main entry points: teacher/routes.py Teacher book routes · dependencies.py Role authorization · student/routes.py Student library and rooms · App.jsx Role routes
Components 22
Role-based web app
- Role routes
frontend/src/App.jsx - Teacher library UI
frontend/src/teacher/TeacherLibrary.jsx - Content API client
frontend/src/api/content.js
Textbook library
- Teacher book routes
backend/app/teacher/routes.py - Library access
backend/app/content_library/access.py - Book and chapter upload
backend/app/content_library/upload.py - Library search
backend/app/content_library/search.py - Chapter graph view
backend/app/content_library/graph_view.py
Learning workflows
- Student library and rooms
backend/app/student/routes.py - Assignment workflow
backend/app/assignments/routes.py - Textbook doubts
backend/app/doubts/routes.py - Assignment checks
backend/app/assessment/routes.py - Quiz workflow
backend/app/assessment/quiz_routes.py - Parent links and children
backend/app/parent/routes.py - Quiz generation and grading
backend/app/assessment/quiz_service.py - Mastery tracking
backend/app/assessment/mastery.py
Identity and access
- Session and profile
frontend/src/auth/AuthContext.jsx - Role authorization
backend/app/auth/dependencies.py
Content processing
- Chapter processing jobs
backend/app/pipeline/jobs.py - Hashed file storage
backend/app/core/storage.py - Reference book ingestion
backend/app/db/ingest_reference.py
Other components
- User
Connections 27
- User → Role routes: uses
frontend/src/App.jsx - Role routes → Session and profile: provides sessions
frontend/src/main.jsx - Role routes → Teacher library UI: routes teachers
frontend/src/App.jsx - Teacher library UI → Content API client: requests library data
frontend/src/teacher/TeacherLibrary.jsx - Teacher book routes → Library access: checks visibility
backend/app/teacher/routes.py - Teacher book routes → Book and chapter upload: manages uploads
backend/app/teacher/routes.py - Teacher book routes → Library search: searches books
backend/app/teacher/routes.py - Teacher book routes → Chapter graph view: serves graph view
backend/app/teacher/routes.py - Student library and rooms → Library access: checks visibility
backend/app/student/routes.py - Student library and rooms → Chapter graph view: serves graph view
backend/app/student/routes.py - User → Student library and rooms: joins and links
backend/app/student/routes.py - User → Assignment workflow: creates work
backend/app/assignments/routes.py - User → Textbook doubts: asks questions
backend/app/doubts/routes.py - Textbook doubts → Assignment workflow: checks assignment
backend/app/doubts/routes.py - User → Assignment checks: completes work
backend/app/assessment/routes.py - Assignment checks → Mastery tracking: records mastery
backend/app/assessment/routes.py - User → Quiz workflow: takes quizzes
backend/app/assessment/quiz_routes.py - Quiz workflow → Quiz generation and grading: generates and grades
backend/app/assessment/quiz_routes.py - User → Parent links and children: links child
backend/app/parent/routes.py - Reference book ingestion → Hashed file storage: stores PDF chapters
backend/app/db/ingest_reference.py - Reference book ingestion → Chapter processing jobs: runs chapter job
backend/app/db/ingest_reference.py - Teacher book routes → Role authorization: requires teacher
backend/app/teacher/routes.py - Student library and rooms → Role authorization: requires student
backend/app/student/routes.py - Assignment workflow → Role authorization: requires role
backend/app/assignments/routes.py - Textbook doubts → Role authorization: requires student
backend/app/doubts/routes.py - Assignment checks → Role authorization: requires student
backend/app/assessment/routes.py - Parent links and children → Role authorization: requires parent
backend/app/parent/routes.py