How aman-raj-071/classline1 works
ClassLine is a school-family communication and classroom management application. Its demonstrated main workflow is local demo sign-in, followed by a role-specific parent timeline or teacher desk; teachers manage pupils, schedules, and grade cards, while parents review school updates and related records. An optional Express API supports Cognito/DynamoDB-backed authentication and domain endpoints, and teacher AI drafting is a separate capability. The README says the current UI uses browser demo data and does not call the API. Several frontend branches and the AI implementation are represented from documented capabilities or indexed module references; their unsampled internals are not inferred.
Main entry points: TeacherDesk.tsx Teacher desk · app.ts Express API · auth.ts Authentication routes · middleware.ts Auth and roles
Components 34
Web application
- Role-based app
src/App.tsx - Demo sign-in
src/context/AuthContext.tsx - Demo school data
src/data/mockData.ts - Parent timeline
src/components/ParentTimeline.tsx - Parent records
src/components/ParentTimeline.tsx - Teacher desk
src/components/TeacherDesk.tsx - Grade card editor
src/components/GradeCardEditor.tsx - Grade card view
src/components/GradeCardView.tsx - Grade calculations
src/utils/gradeCalculations.ts - Class schedule
src/components/ClassSchedulePanel.tsx - Teacher management
src/components/TeacherAccountManager.tsx - Parent management
src/components/ParentAccountManager.tsx - School directory
src/components/SchoolDirectory.tsx - Pupil profile
src/components/PupilProfileModal.tsx - Teacher verification
src/components/TeacherVerificationLookup.tsx
Optional API
- Express API
backend/src/app.ts - Authentication routes
backend/src/routes/auth.ts - Parent routes
backend/src/routes/parent.ts - Teacher routes
backend/src/routes/teacher.ts - Admin routes
backend/src/routes/admin.ts - Auth and roles
backend/src/auth/middleware.ts - Request validation
backend/src/validation/schemas.ts - School data queries
backend/src/db/queries.ts - DynamoDB access
backend/src/db/dynamodb.ts - Cognito login
backend/src/auth/cognito.ts - AI routes
backend/src/routes/ai.ts
AI assistants
- Teacher AI drafting
backend/src/services/ai/teacherAssistant.ts - AI model provider
- Website assistant
src/components/WebsiteAssistantWidget.tsx - Chatbot service
classline-chatbot/chatbot.py - Chatbot server
classline-chatbot/server.py - MCP server
classline-chatbot/mcp_server.py
AWS deployment
- Amplify backend
amplify/backend.ts
Other components
- Parent or teacher
Connections 39
- Parent or teacher → Role-based app: uses
- Role-based app → Demo sign-in: provides
src/App.tsx - Demo sign-in → Demo school data: loads demo data
src/context/AuthContext.tsx - Role-based app → Parent timeline: shows parent view
src/App.tsx - Role-based app → Teacher desk: shows teacher view
src/App.tsx - Parent timeline → Grade card view: renders
src/components/ParentTimeline.tsx - Parent timeline → Parent records: renders
src/components/ParentTimeline.tsx - Parent timeline → Class schedule: renders
src/components/ParentTimeline.tsx - Teacher desk → Grade card editor: renders
src/components/TeacherDesk.tsx - Teacher desk → Parent management: renders
src/components/TeacherDesk.tsx - Teacher desk → Teacher management: renders
src/components/TeacherDesk.tsx - Teacher desk → School directory: renders
src/components/TeacherDesk.tsx - Teacher desk → Pupil profile: renders
src/components/TeacherDesk.tsx - Teacher desk → Class schedule: renders
src/components/TeacherDesk.tsx - Teacher desk → Teacher verification: renders
src/components/TeacherDesk.tsx - Grade card editor → Grade calculations: calculates grades
src/components/GradeCardEditor.tsx - Grade card editor → Grade card view: renders preview
src/components/GradeCardEditor.tsx - Express API → Authentication routes: mounts
backend/src/app.ts - Express API → Parent routes: mounts
backend/src/app.ts - Express API → Teacher routes: mounts
backend/src/app.ts - Express API → Admin routes: mounts
backend/src/app.ts - Express API → AI routes: mounts
backend/src/app.ts - Authentication routes → Request validation: validates with
backend/src/routes/auth.ts - Authentication routes → School data queries: looks up user
backend/src/routes/auth.ts - Authentication routes → Cognito login: attempts login
backend/src/routes/auth.ts - Authentication routes → Auth and roles: protects profile route
backend/src/routes/auth.ts - Parent routes → Auth and roles: uses authorization
- Teacher routes → Auth and roles: uses authorization
backend/src/routes/teacher.ts - Teacher routes → Request validation: validates with
backend/src/routes/teacher.ts - Teacher routes → School data queries: uses data queries
backend/src/routes/teacher.ts - Admin routes → Auth and roles: uses authorization
backend/src/routes/admin.ts - Admin routes → School data queries: uses data queries
backend/src/routes/admin.ts - School data queries → DynamoDB access: queries store
backend/src/db/queries.ts - AI routes → Auth and roles: requires teacher roles
backend/src/routes/ai.ts - AI routes → Teacher AI drafting: requests drafts
backend/src/routes/ai.ts - Teacher AI drafting → AI model provider: generates draft
- Chatbot service → Chatbot server: uses configuration
classline-chatbot/chatbot.py - Chatbot server → MCP server: serves separately
- Amplify backend → Express API: deploys API