How mohammed-uwais/fullstackproject works
This is a student/staff coding-practice portal: users authenticate, browse or receive scheduled problems, run code against test cases, submit solutions, and view leaderboard/solver results; staff can manage the problem bank and daily schedule. The Angular workspace calls an Express API backed by MongoDB, with server-side execution and submission tracking. Major UI branches are retained from the source index. Some frontend-to-backend links are inferred from matching HTTP endpoints, so those edges are dashed; unsampled implementation details are not asserted.
Main entry points: app.component.ts Workspace shell · server.js API server · auth.routes.js Authentication routes · problem.routes.js Problem routes
Components 21
Angular workspace
- Workspace shell
frontend/src/app/app.component.ts - Sign-in and registration
frontend/src/app/components/landing-auth/landing-auth.component.ts - Daily challenge editor
frontend/src/app/components/code-editor/code-editor.component.ts - Problem library
frontend/src/app/components/solution-library/solution-library.component.ts - Staff problem bank
frontend/src/app/components/staff-bank/staff-bank.component.ts - Leaderboard
frontend/src/app/components/leaderboard/leaderboard.component.ts
Frontend services
- Authentication service
frontend/src/app/core/services/auth.service.ts - Problem service
frontend/src/app/core/services/problem.service.ts - Execution service
frontend/src/app/core/services/execution.service.ts
Backend API
- Authentication routes
backend/src/routes/auth.routes.js - Authentication handlers
backend/src/controllers/auth.controller.js - Token and role middleware
backend/src/middleware/auth.middleware.js - Problem routes
backend/src/routes/problem.routes.js - Problem and daily schedule
backend/src/controllers/problem.controller.js - Submission routes
backend/src/routes/submission.routes.js - Submission and leaderboard
backend/src/controllers/submission.controller.js - API server
backend/src/server.js
Code evaluation
- Code runner
backend/src/utils/runner.js
Domain data
- Database connection
backend/src/config/db.js - User, profile, problem and submission models
backend/src/models/index.js
Other components
- Student or staff
Connections 32
- Student or staff → Workspace shell: uses
frontend/src/app/app.component.ts - Workspace shell → Sign-in and registration: renders
frontend/src/app/app.component.ts - Workspace shell → Daily challenge editor: renders
frontend/src/app/app.component.ts - Workspace shell → Leaderboard: renders
frontend/src/app/app.component.ts - Workspace shell → Problem library: renders
frontend/src/app/app.component.ts - Workspace shell → Staff problem bank: renders
frontend/src/app/app.component.ts - Workspace shell → Authentication service: reads session
frontend/src/app/app.component.ts - Sign-in and registration → Authentication service: authenticates
frontend/src/app/components/landing-auth/landing-auth.component.ts - Daily challenge editor → Execution service: runs or submits
frontend/src/app/components/code-editor/code-editor.component.ts - Daily challenge editor → Problem service: loads problems
frontend/src/app/components/code-editor/code-editor.component.ts - Problem library → Problem service: loads problems
frontend/src/app/components/solution-library/solution-library.component.ts - Staff problem bank → Problem service: manages problems
frontend/src/app/components/staff-bank/staff-bank.component.ts - Staff problem bank → Execution service: checks solvers
frontend/src/app/components/staff-bank/staff-bank.component.ts - Leaderboard → Execution service: loads rankings
frontend/src/app/components/leaderboard/leaderboard.component.ts - Authentication service → Authentication routes: HTTP auth
- Problem service → Problem routes: HTTP problem requests
- Execution service → Submission routes: HTTP execution requests
- API server → Database connection: connects database
backend/src/server.js - API server → Authentication routes: mounts routes
backend/src/server.js - API server → Problem routes: mounts routes
backend/src/server.js - API server → Submission routes: mounts routes
backend/src/server.js - Authentication routes → Authentication handlers: dispatches
backend/src/routes/auth.routes.js - Authentication routes → Token and role middleware: applies auth
backend/src/routes/auth.routes.js - Problem routes → Problem and daily schedule: dispatches
backend/src/routes/problem.routes.js - Problem routes → Token and role middleware: applies optional auth
backend/src/routes/problem.routes.js - Submission routes → Submission and leaderboard: dispatches
backend/src/routes/submission.routes.js - Submission routes → Token and role middleware: applies auth
backend/src/routes/submission.routes.js - Authentication handlers → User, profile, problem and submission models: reads and writes
backend/src/controllers/auth.controller.js - Token and role middleware → User, profile, problem and submission models: loads profiles
backend/src/middleware/auth.middleware.js - Problem and daily schedule → User, profile, problem and submission models: reads and writes
backend/src/controllers/problem.controller.js - Submission and leaderboard → Code runner: executes code
backend/src/controllers/submission.controller.js - Submission and leaderboard → User, profile, problem and submission models: reads and stores results
backend/src/controllers/submission.controller.js