How suraj-115/trackurcodelife works
TrackUrCodeLife is a student-facing competitive-programming tracker with an administrative dashboard. Students register and authenticate, view cross-platform statistics and filtered rankings, and update profile handles; administrators manage student records, inspect contest analytics, and trigger synchronization. The backend gathers LeetCode and CodeChef data, maintains student and contest records in MongoDB, and schedules refreshes. The graph follows relationships visible in excerpts, the SOURCE INDEX, or README; some README-documented features have unsampled implementations, so their internal wiring is not asserted.
Main entry points: adminController.js Admin operations · syncStudent.js Per-student sync · app.js Express application · App.jsx App navigation
Components 30
Web application
- App navigation
client/src/App.jsx - Sign-in and signup
client/src/pages/Login.jsx - Student dashboard
client/src/pages/Dashboard.jsx - Profile editor
client/src/pages/EditProfile.jsx - Admin dashboard
client/src/pages/AdminDashboard.jsx - HTTP client
client/src/services/api.js
API and identity
- Express application
server/app.js - Authentication routes
server/routes/authRoutes.js - Student routes
server/routes/studentRoutes.js - Admin routes
server/routes/adminRoutes.js - Authentication
server/controllers/authController.js - JWT protection
server/middleware/authMiddleware.js
Student data
- Student profiles and rankings
server/controllers/studentController.js - Admin operations
server/controllers/adminController.js - Student records
server/models/Student.js - OTP records
server/models/OTP.js - Contest participation
server/models/ContestParticipation.js - Contest analytics
server/services/analytics/contestAnalytics.js
Platform collection
- LeetCode data fetch
server/services/leetcode/leetcodeService.js - CodeChef data fetch
server/services/codechef/codechefService.js
Synchronization
- Per-student sync
server/services/sync/syncStudent.js - Contest history sync
server/services/sync/syncContestHistory.js - Batch synchronization
server/services/sync/syncAllStudents.js - Sync scheduler
server/services/sync/syncScheduler.js
Other components
- Student
- Administrator
- MongoDB
- Email service
- LeetCode
- CodeChef
Connections 44
- Student → App navigation: uses
client/src/App.jsx - Administrator → App navigation: uses
client/src/App.jsx - App navigation → Sign-in and signup: routes to
client/src/App.jsx - App navigation → Student dashboard: routes to
client/src/App.jsx - App navigation → Profile editor: routes to
client/src/App.jsx - App navigation → Admin dashboard: routes to
client/src/App.jsx - Sign-in and signup → HTTP client: requests through
client/src/pages/Login.jsx - Student dashboard → HTTP client: requests through
client/src/pages/Dashboard.jsx - Profile editor → HTTP client: requests through
client/src/pages/EditProfile.jsx - Admin dashboard → HTTP client: requests through
client/src/pages/AdminDashboard.jsx - HTTP client → Express application: calls API
README.md - Express application → Authentication routes: mounts
server/app.js - Express application → Student routes: mounts
server/app.js - Express application → Admin routes: mounts
server/app.js - Express application → MongoDB: connects
server/app.js - Express application → Sync scheduler: starts
server/app.js - Authentication routes → Authentication: dispatches
server/routes/authRoutes.js - Student routes → Student profiles and rankings: dispatches
server/routes/studentRoutes.js - Admin routes → Admin operations: dispatches
server/routes/adminRoutes.js - Authentication routes → JWT protection: protects profile
server/routes/authRoutes.js - Student routes → JWT protection: protects requests
server/routes/studentRoutes.js - Admin routes → JWT protection: protects requests
server/routes/adminRoutes.js - Authentication → Student records: reads and writes
server/controllers/authController.js - Authentication → OTP records: uses
server/controllers/authController.js - Authentication → Email service: sends OTP
server/controllers/authController.js - Student profiles and rankings → Student records: queries
server/controllers/studentController.js - Student profiles and rankings → Per-student sync: syncs profile
server/controllers/studentController.js - Admin operations → Student records: manages
server/controllers/adminController.js - Admin operations → Contest participation: deletes records
server/controllers/adminController.js - Admin operations → Per-student sync: syncs student
server/controllers/adminController.js - Admin operations → Batch synchronization: starts batch
server/controllers/adminController.js - Admin operations → Contest history sync: updates sections
server/controllers/adminController.js - Admin operations → Contest analytics: requests analytics
server/controllers/adminController.js - Contest analytics → Contest participation: queries
server/services/analytics/contestAnalytics.js - Sync scheduler → Batch synchronization: schedules
server/services/sync/syncScheduler.js - Batch synchronization → Student records: loads students
server/services/sync/syncAllStudents.js - Batch synchronization → Per-student sync: syncs each
server/services/sync/syncAllStudents.js - Per-student sync → LeetCode data fetch: fetches stats
server/services/sync/syncStudent.js - Per-student sync → CodeChef data fetch: fetches stats
server/services/sync/syncStudent.js - Per-student sync → Student records: updates stats
server/services/sync/syncStudent.js - Per-student sync → Contest history sync: stores history
server/services/sync/syncStudent.js - Contest history sync → Contest participation: writes history
server/services/sync/syncContestHistory.js - LeetCode data fetch → LeetCode: fetches from
- CodeChef data fetch → CodeChef: scrapes profile
server/services/codechef/codechefService.js