How vajjipartisatwikraj/scope-codestats works
SCOPE is a competitive-programming tracker and cohort-based learning platform. Students authenticate, view aggregated platform progress and rankings, join structured cohorts, and practice through coding tests; teachers and admins manage learning content and platform operations. The repository also documents notifications, achievements, opportunities, and analytics. The graph emphasizes those product areas while showing the application, API, and data-model layers. Several feature routes and services are listed in the tree but were not sampled, so their internal connections are omitted or marked unverified.
Main entry points: server.js API server · App.jsx Application routing · cohorts.js Cohort workflows · auth.js Authentication routes
Components 28
Web experience
- Application routing
frontend/src/App.jsx
Identity and access
- Authentication state
frontend/src/contexts/AuthContext.jsx - Authentication routes
backend/routes/auth.js - Google sign-in
backend/routes/auth/googleAuth.js - User accounts
backend/models/User.js
Progress tracking
- Profile views
frontend/src/components/UserView.jsx - Profile management
backend/routes/profiles.js - Coding profiles
backend/models/Profile.js - Platform aggregation
backend/services/platformAPIs.js - Performance dashboard
frontend/src/components/Dashboard.jsx - Leaderboards
frontend/src/components/Leaderboard.jsx - Statistics services
backend/services/statsService.js
Learning and practice
- Cohort learning
frontend/src/components/cohort/CohortDetail.jsx - Cohort workflows
backend/routes/cohorts.js - Cohort enrollment
backend/models/UserCohort.js - Learning questions
backend/models/Question.js - Cohort cascades
backend/services/cohortCascadeService.js - Practice arena
frontend/src/components/PracticeArena/PracticeArenaManagement.jsx - Practice tests
backend/routes/practiceArena.js - Code execution
backend/services/simpleCodeExecutionService.js
Platform services
- Admin analytics
frontend/src/components/AdminDashboard/index.js - Administration
backend/routes/admin.js - Notifications
backend/routes/notifications.js - Opportunities
backend/routes/opportunities.js - API server
backend/server.js - MongoDB
- Judge0
Other components
- Students and staff
Connections 27
- Students and staff → Application routing: use
- Application routing → Authentication state: initializes
frontend/src/App.jsx - Authentication state → Authentication routes: requests identity
- Authentication routes → User accounts: reads accounts
backend/routes/auth.js - Google sign-in → User accounts: updates accounts
backend/routes/auth/googleAuth.js - Application routing → Performance dashboard: routes to
frontend/src/App.jsx - Application routing → Practice arena: routes to
frontend/src/App.jsx - Application routing → Cohort learning: routes to
frontend/src/App.jsx - Profile views → Profile management: requests profile
- Profile management → Coding profiles: manages profiles
- Platform aggregation → Coding profiles: aggregates scores
backend/models/Profile.js - Performance dashboard → Statistics services: requests analytics
- Cohort learning → Cohort workflows: requests learning data
- Cohort workflows → Cohort enrollment: manages enrollment
- Cohort workflows → Learning questions: manages questions
- Cohort cascades → Learning questions: deletes questions
backend/services/cohortCascadeService.js - Cohort cascades → Cohort enrollment: cascades enrollment
backend/services/cohortCascadeService.js - Practice arena → Practice tests: requests tests
- Practice tests → Code execution: runs submissions
- Code execution → Judge0: submits code
backend/services/simpleCodeExecutionService.js - Admin analytics → Administration: requests administration
- API server → Authentication routes: mounts routes
backend/server.js - API server → Profile management: mounts routes
backend/server.js - API server → MongoDB: connects
backend/server.js - API server → Administration: mounts routes
backend/server.js - API server → Notifications: mounts routes
backend/server.js - API server → Opportunities: mounts routes
backend/server.js