How samuelprakash18/teachman works
TeachMan is a tutor-and-parent management app. Tutors manage teaching, enrollment, billing, expenses, and cash planning; parents discover tutors, request enrollment, and track children’s classes, fees, attendance, and learning. The frontend routes role-specific pages and makes API requests to a FastAPI backend, whose routes use database sessions and domain services. The README documents additional capabilities such as notifications, account settings, and AI; several of those route implementations were not sampled, so their internal links are not inferred.
Main entry points: main.py API application · enrollment_service.py Approval invoicing · enrollments.py Enrollment workflow · payments.py Invoices and payments
Components 25
Web client
- Role-based pages
frontend/src/App.tsx - API client
frontend/src/lib/api.ts
Teaching management
- Teaching pages
frontend/src/pages/tutor/Enrollments.tsx - Parent pages
frontend/src/pages/parent/Fees.tsx - Students and classes
backend/app/api/routes/students.py - Enrollment workflow
backend/app/api/routes/enrollments.py - Approval invoicing
backend/app/services/enrollment_service.py - Teaching records
backend/app/models/teaching.py - Student records
backend/app/models/student.py
Billing and cash
- Tutor billing pages
frontend/src/pages/tutor/Invoices.tsx - Invoices and payments
backend/app/api/routes/payments.py - Invoice numbering
backend/app/services/invoice_service.py - Financial records
backend/app/models/finance.py - Forecast and expenses
backend/app/api/routes/forecast.py - Cash forecast engine
backend/app/services/forecast_engine.py
Backend platform
- API application
backend/app/main.py - Authentication
backend/app/api/routes/auth.py - Access dependencies
backend/app/api/deps.py - Database sessions
backend/app/db/session.py - PostgreSQL
Learning and assistance
- Learning and AI
backend/app/api/routes/ai.py - AI service
backend/app/services/ai_service.py - Notifications
backend/app/api/routes/notifications.py
Other components
- Tutors and parents
- NVIDIA service
Connections 29
- Tutors and parents → Role-based pages: use pages
frontend/src/App.tsx - Role-based pages → Teaching pages: routes to
frontend/src/App.tsx - Role-based pages → Parent pages: routes to
frontend/src/App.tsx - Teaching pages → API client: requests data
frontend/src/pages/tutor/Enrollments.tsx - Parent pages → API client: requests data
frontend/src/pages/parent/Fees.tsx - API client → API application: calls API
- API application → Authentication: registers route
backend/app/main.py - API application → Students and classes: registers route
backend/app/main.py - API application → Enrollment workflow: registers route
backend/app/main.py - API application → Invoices and payments: registers route
backend/app/main.py - API application → Forecast and expenses: registers route
backend/app/main.py - API application → Learning and AI: registers route
backend/app/main.py - API application → Notifications: registers route
backend/app/main.py - Enrollment workflow → Approval invoicing: approves via
backend/app/api/routes/enrollments.py - Approval invoicing → Invoice numbering: gets number
backend/app/services/enrollment_service.py - Enrollment workflow → Teaching records: reads and writes
backend/app/api/routes/enrollments.py - Approval invoicing → Teaching records: reads records
backend/app/services/enrollment_service.py - Approval invoicing → Student records: reads records
backend/app/services/enrollment_service.py - Approval invoicing → Financial records: creates invoice
backend/app/services/enrollment_service.py - Invoices and payments → Invoice numbering: uses numbering
backend/app/api/routes/payments.py - Invoices and payments → Financial records: reads and writes
backend/app/api/routes/payments.py - Forecast and expenses → Cash forecast engine: computes forecast
- Learning and AI → AI service: uses service
- AI service → NVIDIA service: optionally calls
backend/app/services/ai_service.py - Authentication → Access dependencies: uses identity
backend/app/api/routes/auth.py - Access dependencies → Database sessions: gets session
backend/app/api/deps.py - Enrollment workflow → Database sessions: gets session
backend/app/api/routes/enrollments.py - Invoices and payments → Database sessions: gets session
backend/app/api/routes/payments.py - Database sessions → PostgreSQL: opens connection
backend/app/db/session.py