# thiagoudweb/projeto-es architecture

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

- Interactive diagram: https://gitdiagram.com/thiagoudweb/projeto-es
- Repository: https://github.com/thiagoudweb/projeto-es

## Overview

This repository implements an Angular and Spring Boot mentoring platform. A student or mentor registers and builds a role-specific profile, searches the other role by interests, arranges a mentoring session, tracks its status/history, and can review completed sessions. The graph preserves these documented capabilities, with session and review lifecycle as distinct domain stages. Backend controller-to-service and persistence details are mostly unsampled, so those links are documented or marked unverified rather than inferred as inspected; material resources are included as a documented capability.

Main entry points: [`frontend/src/app/profile/profile.service.ts`](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/profile/profile.service.ts) (Profile client), [`frontend/src/app/app.routes.ts`](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/app.routes.ts) (Application routes), [`backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/repository`](https://github.com/thiagoudweb/projeto-es/tree/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/repository) (Domain repositories), [`frontend/src/app/auth/login/login.component.ts`](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/auth/login/login.component.ts) (Login and registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Angular client"]
  node_routes["Application routes<br/>[app.routes.ts]"]
  node_auth_ui["Login and registration<br/>[login.component.ts]"]
end

subgraph group_identity["Identity and profiles"]
  node_auth_client["Auth client<br/>[auth.service.ts]"]
  node_auth_controller["Authentication API"]
  node_security["Token security<br/>[TokenService.java]"]
  node_profiles_ui["Profile screens"]
  node_profile_service["Profile client<br/>[profile.service.ts]"]
  node_mentor_api["Mentor API"]
  node_mentored_api["Student API"]
end

subgraph group_discovery["Member discovery"]
  node_mentor_search_ui["Mentor search<br/>[mentor-search.ts]"]
  node_mentored_search_ui["Student search<br/>[mentored-search.ts]"]
  node_mentor_search["Mentor discovery"]
  node_mentored_search["Student discovery"]
end

subgraph group_mentoring["Mentoring lifecycle"]
  node_sessions_ui["Session booking"]
  node_session_client["Session client<br/>[session.service.ts]"]
  node_session_api["Session API"]
  node_session_service["Session lifecycle"]
  node_history_ui["Session history"]
  node_review_service["Session reviews<br/>[ReviewService.java]"]
  node_material_api["Support materials"]
end

subgraph group_persistence["Backend persistence"]
  node_repositories[("Domain repositories<br/>[repository]")]
end

node_member(("Mentor or student"))
node_postgres[("PostgreSQL")]

node_member -->|"uses"| node_routes
node_routes -->|"routes to"| node_auth_ui
node_routes -->|"routes to"| node_profiles_ui
node_routes -->|"routes to"| node_sessions_ui
node_routes -->|"routes to"| node_history_ui
node_auth_ui -.->|"uses"| node_auth_client
node_auth_client -->|"requests"| node_auth_controller
node_auth_controller -.->|"issues tokens"| node_security
node_profiles_ui -.->|"loads profile"| node_profile_service
node_profile_service -->|"requests profile"| node_mentor_api
node_profile_service -->|"requests profile"| node_mentored_api
node_mentor_search_ui -->|"searches through"| node_profile_service
node_mentored_search_ui -->|"searches through"| node_profile_service
node_profile_service -->|"requests mentors"| node_mentor_search
node_profile_service -->|"requests students"| node_mentored_search
node_mentor_search -->|"queries"| node_repositories
node_mentored_search -->|"queries"| node_repositories
node_sessions_ui -.->|"uses"| node_session_client
node_session_client -.->|"requests sessions"| node_session_api
node_session_api -.->|"delegates"| node_session_service
node_session_service -->|"reads and writes"| node_repositories
node_history_ui -->|"loads history"| node_profile_service
node_review_service -->|"reads and writes"| node_repositories
node_repositories -.->|"persists"| node_postgres
node_member -.->|"finds mentors"| node_mentor_search_ui
node_member -.->|"finds students"| node_mentored_search_ui
node_member -.->|"accesses resources"| node_material_api
node_member -.->|"reviews sessions"| node_review_service

click node_routes "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/app.routes.ts"
click node_auth_ui "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/auth/login/login.component.ts"
click node_auth_client "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/auth/auth.service.ts"
click node_auth_controller "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/AuthController.java"
click node_security "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/security/TokenService.java"
click node_profiles_ui "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/profile/profile.component.ts"
click node_profile_service "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/profile/profile.service.ts"
click node_mentor_api "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MentorController.java"
click node_mentored_api "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MentoredController.java"
click node_mentor_search_ui "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/mentor-search/mentor-search.ts"
click node_mentored_search_ui "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/mentored-search/mentored-search.ts"
click node_mentor_search "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/MentorSearchService.java"
click node_mentored_search "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/MentoredSearchService.java"
click node_sessions_ui "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/sessions/session.component.ts"
click node_session_client "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/sessions/session.service.ts"
click node_session_api "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/SessionController.java"
click node_session_service "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/SessionService.java"
click node_history_ui "https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/session-history/session-history.component.ts"
click node_review_service "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/ReviewService.java"
click node_material_api "https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MaterialController.java"
click node_repositories "https://github.com/thiagoudweb/projeto-es/tree/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/repository"

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_routes,node_auth_ui toneBlue
class node_auth_client,node_auth_controller,node_security,node_profiles_ui,node_profile_service,node_mentor_api,node_mentored_api,node_postgres toneAmber
class node_mentor_search_ui,node_mentored_search_ui,node_mentor_search,node_mentored_search toneMint
class node_sessions_ui,node_session_client,node_session_api,node_session_service,node_history_ui,node_review_service,node_material_api toneRose
class node_repositories,node_member toneIndigo
```

## Components

### Angular client

- [Application routes](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/app.routes.ts): `frontend/src/app/app.routes.ts`
- [Login and registration](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/auth/login/login.component.ts): `frontend/src/app/auth/login/login.component.ts`

### Identity and profiles

- [Auth client](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/auth/auth.service.ts): `frontend/src/app/auth/auth.service.ts`
- [Authentication API](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/AuthController.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/AuthController.java`
- [Token security](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/security/TokenService.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/security/TokenService.java`
- [Profile screens](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/profile/profile.component.ts): `frontend/src/app/profile/profile.component.ts`
- [Profile client](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/profile/profile.service.ts): `frontend/src/app/profile/profile.service.ts`
- [Mentor API](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MentorController.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MentorController.java`
- [Student API](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MentoredController.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MentoredController.java`

### Member discovery

- [Mentor search](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/mentor-search/mentor-search.ts): `frontend/src/app/mentor-search/mentor-search.ts`
- [Student search](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/mentored-search/mentored-search.ts): `frontend/src/app/mentored-search/mentored-search.ts`
- [Mentor discovery](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/MentorSearchService.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/MentorSearchService.java`
- [Student discovery](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/MentoredSearchService.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/MentoredSearchService.java`

### Mentoring lifecycle

- [Session booking](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/sessions/session.component.ts): `frontend/src/app/sessions/session.component.ts`
- [Session client](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/sessions/session.service.ts): `frontend/src/app/sessions/session.service.ts`
- [Session API](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/SessionController.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/SessionController.java`
- [Session lifecycle](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/SessionService.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/SessionService.java`
- [Session history](https://github.com/thiagoudweb/projeto-es/blob/main/frontend/src/app/session-history/session-history.component.ts): `frontend/src/app/session-history/session-history.component.ts`
- [Session reviews](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/ReviewService.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/ReviewService.java`
- [Support materials](https://github.com/thiagoudweb/projeto-es/blob/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MaterialController.java): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/controller/MaterialController.java`

### Backend persistence

- [Domain repositories](https://github.com/thiagoudweb/projeto-es/tree/main/backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/repository): `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/repository`

### Other components

- **Mentor or student**
- **PostgreSQL**

## Connections

- Mentor or student → Application routes: uses (evidence: `frontend/src/app/app.routes.ts`)
- Application routes → Login and registration: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Application routes → Profile screens: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Application routes → Session booking: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Application routes → Session history: routes to (evidence: `frontend/src/app/app.routes.ts`)
- Login and registration → Auth client: uses
- Auth client → Authentication API: requests (evidence: `frontend/src/app/auth/auth.service.ts`)
- Authentication API → Token security: issues tokens
- Profile screens → Profile client: loads profile
- Profile client → Mentor API: requests profile (evidence: `frontend/src/app/profile/profile.service.ts`)
- Profile client → Student API: requests profile (evidence: `frontend/src/app/profile/profile.service.ts`)
- Mentor search → Profile client: searches through (evidence: `frontend/src/app/mentor-search/mentor-search.ts`)
- Student search → Profile client: searches through (evidence: `frontend/src/app/mentored-search/mentored-search.ts`)
- Profile client → Mentor discovery: requests mentors (evidence: `frontend/src/app/profile/profile.service.ts`)
- Profile client → Student discovery: requests students (evidence: `frontend/src/app/profile/profile.service.ts`)
- Mentor discovery → Domain repositories: queries (evidence: `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/MentorSearchService.java`)
- Student discovery → Domain repositories: queries (evidence: `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/MentoredSearchService.java`)
- Session booking → Session client: uses
- Session client → Session API: requests sessions
- Session API → Session lifecycle: delegates
- Session lifecycle → Domain repositories: reads and writes (evidence: `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/SessionService.java`)
- Session history → Profile client: loads history (evidence: `frontend/src/app/profile/profile.service.ts`)
- Session reviews → Domain repositories: reads and writes (evidence: `backend/plataforma.mentoria/src/main/java/br/edu/ufape/plataforma/mentoria/service/ReviewService.java`)
- Domain repositories → PostgreSQL: persists
- Mentor or student → Mentor search: finds mentors
- Mentor or student → Student search: finds students
- Mentor or student → Support materials: accesses resources
- Mentor or student → Session reviews: reviews sessions
