How jashvanthan/csemastery works
CSEMastery is a multi-user learning and habit-tracking platform built around a 200-day CS curriculum. A learner signs in or uses the demo profile, explores tracks, weeks, and days, completes study tasks, and tracks progress through dashboards and analytics. Separate features support LeetCode practice, notes, projects, revision, and community rankings. The graph follows the documented React-to-API-to-controller-to-database structure; several feature connections rely on the README and SOURCE INDEX because their source excerpts were not provided.
Main entry points: routes/api.ts API routes · App.tsx App routing · services/api.ts API client · index.ts Database access
Components 26
Learner experience
- App routing
frontend/src/App.tsx - Sign-in and demo
frontend/src/pages/AuthPage.tsx - Session state
frontend/src/context/AuthContext.tsx - Dashboard and analytics
frontend/src/pages/DashboardPage.tsx - Plan and tracks
frontend/src/pages/PlanPage.tsx - Day and task study
frontend/src/pages/DayDetailPage.tsx - Community rankings
frontend/src/pages/CommunityPage.tsx - LeetCode tracker
frontend/src/pages/LeetcodePage.tsx - Projects
frontend/src/pages/ProjectsPage.tsx - Notes and revision
frontend/src/pages/NotesPage.tsx
API and security
- API client
frontend/src/services/api.ts - API routes
backend/src/routes/api.ts - JWT guard
backend/src/middleware/auth.ts - Authentication
backend/src/controllers/authController.ts - Express server
backend/src/index.ts
Curriculum progress
- Plan and curriculum
backend/src/controllers/planController.ts - Task progress
backend/src/controllers/taskController.ts - Progress analytics
backend/src/controllers/dashboardController.ts
Study features
- Problem tracking
backend/src/controllers/leetcodeController.ts - Study notes
backend/src/controllers/notesController.ts - Project progress
backend/src/controllers/projectsController.ts - Leaderboard
backend/src/controllers/communityController.ts
Data platform
- Curriculum generator
backend/src/db/curriculumBuilder.ts - Seed data
backend/src/db/seed.ts - Database access
backend/src/db/index.ts
Other components
- Learner
Connections 41
- Learner → App routing: uses
README.md - App routing → Sign-in and demo: routes to
frontend/src/App.tsx - App routing → Dashboard and analytics: routes to
frontend/src/App.tsx - App routing → Plan and tracks: routes to
frontend/src/App.tsx - App routing → Day and task study: routes to
frontend/src/App.tsx - App routing → Community rankings: routes to
frontend/src/App.tsx - App routing → LeetCode tracker: routes to
frontend/src/App.tsx - App routing → Projects: routes to
frontend/src/App.tsx - App routing → Notes and revision: routes to
frontend/src/App.tsx - App routing → Session state: provides session
frontend/src/App.tsx - Sign-in and demo → Session state: authenticates through
frontend/src/context/AuthContext.tsx - Session state → API client: calls
frontend/src/context/AuthContext.tsx - Dashboard and analytics → API client: requests data
frontend/src/pages/DashboardPage.tsx - Plan and tracks → API client: requests data
frontend/src/pages/PlanPage.tsx - Day and task study → API client: requests data
frontend/src/pages/DayDetailPage.tsx - Community rankings → API client: requests data
frontend/src/pages/CommunityPage.tsx - LeetCode tracker → API client: requests data
frontend/src/pages/LeetcodePage.tsx - Projects → API client: requests data
frontend/src/pages/ProjectsPage.tsx - Notes and revision → API client: requests data
frontend/src/pages/NotesPage.tsx - API client → API routes: sends API requests
frontend/src/services/api.ts - Express server → API routes: mounts
backend/src/index.ts - API routes → Authentication: dispatches auth
backend/src/routes/api.ts - API routes → Plan and curriculum: dispatches plan
backend/src/routes/api.ts - API routes → Task progress: dispatches tasks
backend/src/routes/api.ts - API routes → Progress analytics: dispatches dashboard
backend/src/routes/api.ts - API routes → Problem tracking: dispatches problems
backend/src/routes/api.ts - API routes → Study notes: dispatches notes
backend/src/routes/api.ts - API routes → Project progress: dispatches projects
backend/src/routes/api.ts - API routes → Leaderboard: dispatches leaderboard
backend/src/routes/api.ts - API routes → JWT guard: guards protected routes
backend/src/routes/api.ts - Authentication → JWT guard: creates JWTs
backend/src/controllers/authController.ts - Plan and curriculum → Database access: reads curriculum
backend/src/controllers/planController.ts - Task progress → Database access: reads and writes progress
backend/src/controllers/taskController.ts - Progress analytics → Database access: reads metrics
backend/src/controllers/dashboardController.ts - Problem tracking → Database access: reads and writes records
backend/src/controllers/leetcodeController.ts - Study notes → Database access: persists notes
backend/src/controllers/notesController.ts - Project progress → Database access: uses database
backend/src/controllers/projectsController.ts - Leaderboard → Database access: queries rankings
backend/src/controllers/communityController.ts - Express server → Database access: initializes
backend/src/index.ts - Seed data → Database access: seeds records
backend/src/db/seed.ts - Seed data → Curriculum generator: uses curriculum generator
backend/src/db/seed.ts