How parvatwork/algomate works
AlgoMate is a coding-practice platform: users authenticate, browse problems, submit code for judging, and review progress through submissions, profiles, and leaderboards; administrators manage problems and users. The frontend routes and organizes these experiences, while the ASP.NET backend provides domain controllers, services, repositories, and persistence. The source index supports several backend wiring relationships and sampled auth/compiler flows. Other frontend-to-backend links and unsampled domain internals are left unverified rather than inferred.
Main entry points: AppRoutes.jsx Page routing · Repositories Domain repositories · api Feature API clients · Program.cs HTTP application
Components 33
Web application
- Application shell
src/App.jsx - Page routing
src/routes/AppRoutes.jsx
Identity
- Auth state and flow
src/hooks/useAuth.js - Auth API client
src/api/authApi.js - Supabase auth
src/config/supabaseClient.js - Auth state
src/store/slices/authSlice.js
Practice and progress
- Problem browsing
src/pages/problem/ProblemsPage.jsx - Problem workspace
src/pages/problem/ProblemDetailPage.jsx - Code submission flow
src/hooks/useCompiler.js - Submission history
src/pages/submission/SubmissionsPage.jsx - Leaderboard
src/pages/leaderboard/LeaderboardPage.jsx - User profile
src/pages/user/ProfilePage.jsx - Admin pages
src/pages/admin/AdminDashboardPage.jsx - Feature API clients
src/api
Backend services
- HTTP application
algomate-backend/algomate-backend/Program.cs - Auth endpoints
algomate-backend/algomate-backend/Controllers/AuthController.cs - Problem endpoints
algomate-backend/algomate-backend/Controllers/ProblemController.cs - Compiler endpoints
algomate-backend/algomate-backend/Controllers/CompilerController.cs - Submission endpoints
algomate-backend/algomate-backend/Controllers/SubmissionController.cs - Leaderboard endpoints
algomate-backend/algomate-backend/Controllers/LeaderboardController.cs - User endpoints
algomate-backend/algomate-backend/Controllers/UserController.cs - Administration endpoints
algomate-backend/algomate-backend/Controllers/AdminController.cs - Problem and recommendation services
algomate-backend/algomate-backend/Services/ProblemService.cs - Compiler service
algomate-backend/algomate-backend/Services/CompilerService.cs - Leaderboard service
algomate-backend/algomate-backend/Services/LeaderboardService.cs - Recommendation service
algomate-backend/algomate-backend/Services/RecommendationService.cs - Authentication service
algomate-backend/algomate-backend/Services/AuthServices.cs
Persistence
- Domain repositories
algomate-backend/algomate-backend/Repositories - Entity context
algomate-backend/algomate-backend/Data/AlgoMateDbContext.cs - Application database
Other components
- Learner
- Administrator
- Code judge
Connections 42
- Application shell → Page routing: renders
src/App.jsx - Page routing → Problem browsing: routes to
src/routes/AppRoutes.jsx - Page routing → Problem workspace: routes to
src/routes/AppRoutes.jsx - Page routing → Submission history: routes to
src/routes/AppRoutes.jsx - Page routing → Leaderboard: routes to
src/routes/AppRoutes.jsx - Page routing → User profile: routes to
src/routes/AppRoutes.jsx - Page routing → Admin pages: routes to
src/routes/AppRoutes.jsx - Learner → Page routing: navigates
- Administrator → Page routing: navigates
- Page routing → Auth state: checks access
src/routes/AppRoutes.jsx - Auth state and flow → Supabase auth: authenticates with
src/hooks/useAuth.js - Auth state and flow → Auth API client: requests account data
src/hooks/useAuth.js - Auth state and flow → Auth state: updates
src/hooks/useAuth.js - Auth API client → Feature API clients: uses
src/api/authApi.js - Supabase auth → Learner: authenticates
- Problem browsing → Feature API clients: loads problems
- Problem workspace → Code submission flow: uses
src/pages/problem/ProblemDetailPage.jsx - Code submission flow → Feature API clients: submits and polls
src/hooks/useCompiler.js - Submission history → Feature API clients: loads history
- Leaderboard → Feature API clients: loads rankings
- User profile → Feature API clients: loads profile
- Admin pages → Feature API clients: manages data
- Feature API clients → HTTP application: calls HTTP API
- HTTP application → Domain repositories: registers
- HTTP application → Problem and recommendation services: registers
- HTTP application → Compiler service: registers
- HTTP application → Leaderboard service: registers
- HTTP application → Recommendation service: registers
- Auth endpoints → Authentication service: delegates to
- Authentication service → Domain repositories: uses
algomate-backend/algomate-backend/Services/AuthServices.cs - Problem endpoints → Domain repositories: uses
algomate-backend/algomate-backend/Controllers/ProblemController.cs - Problem endpoints → Problem and recommendation services: uses
- Compiler endpoints → Domain repositories: uses
algomate-backend/algomate-backend/Controllers/CompilerController.cs - Submission endpoints → Domain repositories: uses
- Leaderboard endpoints → Domain repositories: uses
- User endpoints → Domain repositories: uses
- Administration endpoints → Domain repositories: uses
algomate-backend/algomate-backend/Controllers/AdminController.cs - Administration endpoints → Problem and recommendation services: uses
algomate-backend/algomate-backend/Controllers/AdminController.cs - Domain repositories → Entity context: persists via
algomate-backend/algomate-backend/Repositories/LeaderboardRepository.cs - Entity context → Application database: reads and writes
- Compiler service → Code judge: evaluates code
- Recommendation service → Domain repositories: uses