How isashaikh/smartedu-platform works
Learnexa is a role-based learning platform: instructors create and manage courses, while students discover, preview, enroll in, and consume them. The frontend routes users into role-specific workflows and calls the Spring API; backend controllers delegate course operations to a service that builds course content and enrollment analytics. Separate branches support authentication, profiles, uploaded learning resources, and Gemini-generated descriptions. The graph includes documented features whose implementation was not sampled, but omits uncertain links; edges are grounded in excerpts or README statements.
Main entry points: course.ts Course API client · AppRoutes.tsx Role-based routes · CourseService.java Course operations · AuthenticationService.java Authentication service
Components 29
Web experience
- Role-based routes
learningpath-dashboard/src/routes/AppRoutes.tsx - Sign-in and registration
learningpath-dashboard/src/components/AuthForm.tsx - Role dashboards
learningpath-dashboard/src/pages/dashboard - Course workflows
learningpath-dashboard/src/pages/course - Profile screens
learningpath-dashboard/src/profile - Course API client
learningpath-dashboard/src/api/course.ts - Authentication client
learningpath-dashboard/src/api/user.ts - Gemini generation
learningpath-dashboard/src/api/gemini.ts - Course catalog
learningpath-dashboard/src/pages/dashboard/features/student/StudentDashboard.tsx - Free course previews
learningpath-dashboard/src/components/CoursePreviewModal.tsx - Enrollment checkout
learningpath-dashboard/src/pages/course/CheckoutPage.tsx - Course viewer
learningpath-dashboard/src/pages/course/CourseViewerPage.tsx - Course analytics
learningpath-dashboard/src/pages/course/CourseAnalyticsPage.tsx
Identity and profiles
- Authentication endpoints
learningpath/src/main/java/com/smartedu/learningpath/auth/AuthController.java - Authentication service
learningpath/src/main/java/com/smartedu/learningpath/auth/AuthenticationService.java - JWT service
learningpath/src/main/java/com/smartedu/learningpath/config/JwtService.java - User repository
learningpath/src/main/java/com/smartedu/learningpath/user/UserRepository.java - Profile management
learningpath/src/main/java/com/smartedu/learningpath/profile/ProfileController.java - Profile image storage
learningpath/src/main/java/com/smartedu/learningpath/service/CloudinaryService.java
Course lifecycle
- Course endpoints
learningpath/src/main/java/com/smartedu/learningpath/controller/CourseController.java - Course operations
learningpath/src/main/java/com/smartedu/learningpath/service/CourseService.java - Course and enrollment data
learningpath/src/main/java/com/smartedu/learningpath/course - Enrollment endpoints
learningpath/src/main/java/com/smartedu/learningpath/controller/EnrollmentController.java
Learning content
- Resource endpoints
learningpath/src/main/java/com/smartedu/learningpath/controller/ResourceController.java - Access-controlled resources
learningpath/src/main/java/com/smartedu/learningpath/service/ResourceService.java - Course file storage
learningpath/src/main/java/com/smartedu/learningpath/service/FileStorageService.java - Uploaded files
Other components
- Learner or instructor
- Cloudinary
Connections 36
- Learner or instructor → Role-based routes: opens
learningpath-dashboard/src/routes/AppRoutes.tsx - Role-based routes → Sign-in and registration: routes to
learningpath-dashboard/src/routes/AppRoutes.tsx - Role-based routes → Role dashboards: routes to
learningpath-dashboard/src/routes/AppRoutes.tsx - Role-based routes → Profile screens: routes to
learningpath-dashboard/src/routes/AppRoutes.tsx - Role-based routes → Course workflows: routes to
learningpath-dashboard/src/routes/AppRoutes.tsx - Sign-in and registration → Authentication client: submits credentials
- Authentication client → Authentication endpoints: calls API
- Authentication endpoints → Authentication service: delegates
learningpath/src/main/java/com/smartedu/learningpath/auth/AuthController.java - Authentication service → User repository: reads and saves
learningpath/src/main/java/com/smartedu/learningpath/auth/AuthenticationService.java - Authentication service → JWT service: issues token
learningpath/src/main/java/com/smartedu/learningpath/auth/AuthenticationService.java - Profile screens → Profile management: calls API
- Profile management → User repository: reads user
learningpath/src/main/java/com/smartedu/learningpath/profile/ProfileController.java - Profile management → Profile image storage: uploads image
learningpath/src/main/java/com/smartedu/learningpath/profile/ProfileController.java - Profile image storage → Cloudinary: stores image
- Role dashboards → Course catalog: shows
- Course catalog → Course API client: searches courses
- Course workflows → Course API client: requests course data
- Course API client → Course endpoints: calls API
- Course endpoints → Course operations: delegates
learningpath/src/main/java/com/smartedu/learningpath/controller/CourseController.java - Enrollment endpoints → Course operations: delegates
learningpath/src/main/java/com/smartedu/learningpath/controller/EnrollmentController.java - Course operations → Course and enrollment data: reads and writes
learningpath/src/main/java/com/smartedu/learningpath/service/CourseService.java - Course operations → Course file storage: saves PDFs
learningpath/src/main/java/com/smartedu/learningpath/service/CourseService.java - Course file storage → Uploaded files: writes files
learningpath/src/main/java/com/smartedu/learningpath/service/FileStorageService.java - Free course previews → Course API client: requests preview
- Enrollment checkout → Course API client: enrolls
- Course viewer → Resource endpoints: loads resources
- Resource endpoints → Access-controlled resources: delegates
learningpath/src/main/java/com/smartedu/learningpath/controller/ResourceController.java - Access-controlled resources → Uploaded files: reads permitted files
learningpath/src/main/java/com/smartedu/learningpath/service/ResourceService.java - Course analytics → Course API client: requests analytics
- Gemini generation → Learner or instructor: generates descriptions
README.md - Learner or instructor → Course workflows: creates courses
README.md - Learner or instructor → Course catalog: discovers courses
README.md - Learner or instructor → Free course previews: previews course
README.md - Learner or instructor → Enrollment checkout: enrolls
README.md - Learner or instructor → Course viewer: studies course
README.md - Learner or instructor → Course analytics: reviews trends
README.md