# rolling-scopes/rsschool-app architecture

> Architecture diagram of the GitHub repository rolling-scopes/rsschool-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rolling-scopes/rsschool-app
- Repository: https://github.com/rolling-scopes/rsschool-app

## Overview

RS School App supports the RS School educational process: learners and staff use a Next.js client to manage coursework, reviews, interviews, profiles, and related services through a NestJS REST backend. The graph highlights major product domains and sampled controller/service ownership. README establishes the client/API arrangement; several backend capabilities are represented from the source tree and index, but their internal calls were not sampled, so those links are omitted.

Main entry points: [`client/src`](https://github.com/rolling-scopes/rsschool-app/tree/master/client/src) (Web application), [`client/src/api/api.ts`](https://github.com/rolling-scopes/rsschool-app/blob/master/client/src/api/api.ts) (Client API), [`nestjs/src/courses/cross-checks/course-cross-checks.controller.ts`](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/cross-checks/course-cross-checks.controller.ts) (Cross-check), [`client/src/modules/MentorTasksReview/pages/MentorTasksReview.tsx`](https://github.com/rolling-scopes/rsschool-app/blob/master/client/src/modules/MentorTasksReview/pages/MentorTasksReview.tsx) (Mentor review UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_learning["Learning workflow"]
  node_web_app["Web application"]
  node_client_api["Client API<br/>[api.ts]"]
  node_course_tasks["Course tasks"]
  node_auto_tests["Auto-tests"]
  node_cross_check["Cross-check"]
end

subgraph group_staff["Staff operations"]
  node_mentor_reviews_ui["Mentor review UI"]
  node_mentor_reviews_api["Mentor review API"]
  node_mentor_review_service["Review assignments"]
  node_interviews["Interviews"]
  node_course_admin["Course administration"]
  node_course_stats["Course statistics"]
  node_certificates["Certificates"]
end

subgraph group_people["People services"]
  node_profile["Profiles"]
  node_mentor_registry["Mentor registry"]
  node_opportunities["Career opportunities"]
  node_notifications["Notifications"]
end

subgraph group_backend["Backend foundation"]
  node_authentication["Authentication<br/>[auth.service.ts]"]
  node_postgres[("PostgreSQL")]
end

node_students(("Students"))
node_staff_users(("Staff users"))

node_students -->|"use"| node_web_app
node_staff_users -->|"use"| node_web_app
node_web_app -.->|"requests"| node_client_api
node_client_api -.->|"calls REST API"| node_course_tasks
node_web_app -.->|"accesses"| node_auto_tests
node_web_app -.->|"accesses"| node_cross_check
node_web_app -->|"renders"| node_mentor_reviews_ui
node_mentor_reviews_ui -.->|"requests reviews"| node_mentor_reviews_api
node_mentor_reviews_api -->|"delegates"| node_mentor_review_service
node_mentor_review_service -->|"queries assignments"| node_postgres
node_web_app -.->|"accesses"| node_interviews
node_web_app -.->|"accesses"| node_course_admin
node_web_app -.->|"accesses"| node_course_stats
node_web_app -.->|"accesses"| node_certificates
node_web_app -.->|"accesses"| node_profile
node_web_app -.->|"accesses"| node_mentor_registry
node_web_app -.->|"accesses"| node_opportunities
node_web_app -.->|"accesses"| node_notifications
node_web_app -.->|"authenticates"| node_authentication
node_authentication -.->|"stores login state"| node_postgres
node_cross_check -->|"uses task solutions"| node_course_tasks
node_mentor_registry -->|"sends event notice"| node_notifications

click node_web_app "https://github.com/rolling-scopes/rsschool-app/tree/master/client/src"
click node_client_api "https://github.com/rolling-scopes/rsschool-app/blob/master/client/src/api/api.ts"
click node_course_tasks "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/course-tasks/course-tasks.controller.ts"
click node_auto_tests "https://github.com/rolling-scopes/rsschool-app/tree/master/client/src/modules/AutoTest"
click node_cross_check "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/cross-checks/course-cross-checks.controller.ts"
click node_mentor_reviews_ui "https://github.com/rolling-scopes/rsschool-app/blob/master/client/src/modules/MentorTasksReview/pages/MentorTasksReview.tsx"
click node_mentor_reviews_api "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/mentor-reviews/mentor-reviews.controller.ts"
click node_mentor_review_service "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/mentor-reviews/mentor-reviews.service.ts"
click node_interviews "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/interviews/interviews.controller.ts"
click node_course_admin "https://github.com/rolling-scopes/rsschool-app/tree/master/client/src/modules/CourseManagement"
click node_course_stats "https://github.com/rolling-scopes/rsschool-app/tree/master/client/src/modules/CourseStatistics"
click node_certificates "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/certificates/certificates.controller.ts"
click node_profile "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/profile/profile.controller.ts"
click node_mentor_registry "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/registry/registry.controller.ts"
click node_opportunities "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/opportunities/opportunities.controller.ts"
click node_notifications "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/users-notifications/users.notifications.controller.ts"
click node_authentication "https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/auth/auth.service.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_web_app,node_client_api,node_course_tasks,node_auto_tests,node_cross_check,node_staff_users toneBlue
class node_mentor_reviews_ui,node_mentor_reviews_api,node_mentor_review_service,node_interviews,node_course_admin,node_course_stats,node_certificates toneAmber
class node_profile,node_mentor_registry,node_opportunities,node_notifications toneMint
class node_authentication,node_postgres toneRose
class node_students toneIndigo
```

## Components

### Learning workflow

- [Web application](https://github.com/rolling-scopes/rsschool-app/tree/master/client/src): `client/src`
- [Client API](https://github.com/rolling-scopes/rsschool-app/blob/master/client/src/api/api.ts): `client/src/api/api.ts`
- [Course tasks](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/course-tasks/course-tasks.controller.ts): `nestjs/src/courses/course-tasks/course-tasks.controller.ts`
- [Auto-tests](https://github.com/rolling-scopes/rsschool-app/tree/master/client/src/modules/AutoTest): `client/src/modules/AutoTest`
- [Cross-check](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/cross-checks/course-cross-checks.controller.ts): `nestjs/src/courses/cross-checks/course-cross-checks.controller.ts`

### Staff operations

- [Mentor review UI](https://github.com/rolling-scopes/rsschool-app/blob/master/client/src/modules/MentorTasksReview/pages/MentorTasksReview.tsx): `client/src/modules/MentorTasksReview/pages/MentorTasksReview.tsx`
- [Mentor review API](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/mentor-reviews/mentor-reviews.controller.ts): `nestjs/src/courses/mentor-reviews/mentor-reviews.controller.ts`
- [Review assignments](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/mentor-reviews/mentor-reviews.service.ts): `nestjs/src/courses/mentor-reviews/mentor-reviews.service.ts`
- [Interviews](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/courses/interviews/interviews.controller.ts): `nestjs/src/courses/interviews/interviews.controller.ts`
- [Course administration](https://github.com/rolling-scopes/rsschool-app/tree/master/client/src/modules/CourseManagement): `client/src/modules/CourseManagement`
- [Course statistics](https://github.com/rolling-scopes/rsschool-app/tree/master/client/src/modules/CourseStatistics): `client/src/modules/CourseStatistics`
- [Certificates](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/certificates/certificates.controller.ts): `nestjs/src/certificates/certificates.controller.ts`

### People services

- [Profiles](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/profile/profile.controller.ts): `nestjs/src/profile/profile.controller.ts`
- [Mentor registry](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/registry/registry.controller.ts): `nestjs/src/registry/registry.controller.ts`
- [Career opportunities](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/opportunities/opportunities.controller.ts): `nestjs/src/opportunities/opportunities.controller.ts`
- [Notifications](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/users-notifications/users.notifications.controller.ts): `nestjs/src/users-notifications/users.notifications.controller.ts`

### Backend foundation

- [Authentication](https://github.com/rolling-scopes/rsschool-app/blob/master/nestjs/src/auth/auth.service.ts): `nestjs/src/auth/auth.service.ts`
- **PostgreSQL**

### Other components

- **Students**
- **Staff users**

## Connections

- Students → Web application: use (evidence: `README.md`)
- Staff users → Web application: use (evidence: `README.md`)
- Web application → Client API: requests
- Client API → Course tasks: calls REST API
- Web application → Auto-tests: accesses
- Web application → Cross-check: accesses
- Web application → Mentor review UI: renders (evidence: `client/src/pages/course/admin/mentor-tasks-review.tsx`)
- Mentor review UI → Mentor review API: requests reviews
- Mentor review API → Review assignments: delegates (evidence: `nestjs/src/courses/mentor-reviews/mentor-reviews.controller.ts`)
- Review assignments → PostgreSQL: queries assignments (evidence: `nestjs/src/courses/mentor-reviews/mentor-reviews.service.ts`)
- Web application → Interviews: accesses
- Web application → Course administration: accesses
- Web application → Course statistics: accesses
- Web application → Certificates: accesses
- Web application → Profiles: accesses
- Web application → Mentor registry: accesses
- Web application → Career opportunities: accesses
- Web application → Notifications: accesses
- Web application → Authentication: authenticates
- Authentication → PostgreSQL: stores login state
- Cross-check → Course tasks: uses task solutions (evidence: `nestjs/src/courses/cross-checks/course-cross-checks.controller.ts`)
- Mentor registry → Notifications: sends event notice (evidence: `nestjs/src/registry/registry.controller.ts`)
