How s-mauryaa/prepxpertcoaching works
PrepXpert is a coaching-institute management app with an admin workspace and a public student learning portal. The main admin workflow loads student and institute data, then supports student records, attendance, fee tracking, and configuration; a separate content workflow manages classes, courses, and lessons for the portal. The frontend hooks call the mounted backend APIs for persisted data, while some settings and class names use local storage. The README is only a generic AI Studio starter guide, and backend route/model implementations were not sampled, so their internal wiring is left unspecified.
Main entry points: App.tsx Web app router · index.ts API server · useContent.ts Content hook · useSettings.ts Settings hook
Components 31
Admin workspace
- Web app router
frontend/src/App.tsx - Admin login
frontend/src/hooks/useAuth.ts - Student records
frontend/src/components/StudentDirectory.tsx - Student editing
frontend/src/components/AddEditStudent.tsx - Student profile
frontend/src/components/StudentProfile.tsx - Attendance
frontend/src/components/Attendance.tsx - Fee tracking
frontend/src/components/Fees.tsx - Admin dashboard
frontend/src/components/Dashboard.tsx - Institute settings
frontend/src/components/Settings.tsx - Student data hook
frontend/src/hooks/useStudents.ts - Settings hook
frontend/src/hooks/useSettings.ts
Learning content
- Content management
frontend/src/components/admin/ContentManagement.tsx - Student portal
frontend/src/components/student/StudentPortal.tsx - Content hook
frontend/src/hooks/useContent.ts
Backend API
- API server
backend/src/index.ts - Student routes
backend/src/routes/students.ts - Batch routes
backend/src/routes/batches.ts - Subject fee routes
backend/src/routes/subjectFees.ts - Course routes
backend/src/routes/courses.ts - Lesson routes
backend/src/routes/lessons.ts - Settings routes
backend/src/routes/settings.ts
Persistence
- Database connection
backend/src/config/db.ts - MongoDB
- Student schema
backend/src/models/Student.ts - Payment schema
backend/src/models/Payment.ts - Batch schema
backend/src/models/Batch.ts - Subject fee schema
backend/src/models/SubjectFee.ts - Course schema
backend/src/models/Course.ts - Lesson schema
backend/src/models/Lesson.ts - Settings schema
backend/src/models/Settings.ts
Other components
- Institute admin
Connections 28
- Institute admin → Web app router: uses
- Web app router → Admin login: checks login
- Web app router → Student records: routes to
- Web app router → Student editing: routes to
- Web app router → Student profile: routes to
- Web app router → Attendance: routes to
- Web app router → Fee tracking: routes to
- Web app router → Admin dashboard: routes to
- Web app router → Institute settings: routes to
- Web app router → Content management: routes to
- Web app router → Student portal: routes to
- Web app router → Student data hook: loads data
- Web app router → Settings hook: loads data
- Web app router → Content hook: loads data
- Student data hook → API server: requests students
- Settings hook → API server: requests settings
- Content hook → API server: requests content
- API server → Student routes: mounts endpoint
- API server → Batch routes: mounts endpoint
- API server → Subject fee routes: mounts endpoint
- API server → Course routes: mounts endpoint
- API server → Lesson routes: mounts endpoint
- API server → Settings routes: mounts endpoint
- API server → Database connection: connects database
- Database connection → MongoDB: connects
- Content management → Content hook: updates content
- Student portal → Content hook: receives content
- Settings hook → MongoDB: not established