# heitor3/gerenciadordealunos architecture

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

- Interactive diagram: https://gitdiagram.com/heitor3/gerenciadordealunos
- Repository: https://github.com/heitor3/gerenciadordealunos

## Overview

Gerenciador de alunos pairs a .NET API with React clients. The principal workflow is user login, then authenticated student listing, filtering, creation, editing, and deletion; the API controller delegates student operations through a service to Entity Framework storage. The tree also contains a separate React CRUD client that calls the API directly. README documents registration and JWT-based login alongside student CRUD. The API startup configuration and the separate client’s remaining source were not sampled, so uncertain wiring is omitted.

Main entry points: [`AlunosApi/Controllers/AccountController.cs`](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Controllers/AccountController.cs) (Account API), [`client-react/src/services/api.js`](https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/services/api.js) (HTTP client), [`client-react/src/routes.js`](https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/routes.js) (Page routes), [`AlunosApi/Controllers/AlunosController.cs`](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Controllers/AlunosController.cs) (Students API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_clients["React clients"]
  node_routed_app["Routed app<br/>[App.js]"]
  node_client_routes["Page routes<br/>[routes.js]"]
  node_login_page["Login page<br/>[index.js]"]
  node_student_page["Student list<br/>[index.js]"]
  node_student_form["Student form<br/>[index.js]"]
  node_http_client["HTTP client<br/>[api.js]"]
  node_legacy_client["Direct CRUD client<br/>[App.js]"]
end

subgraph group_api["API endpoints"]
  node_account_api["Account API"]
  node_students_api["Students API"]
end

subgraph group_domain["Application services"]
  node_auth_contract["Auth contract<br/>[IAuthenticate.cs]"]
  node_auth_service["Authentication service"]
  node_student_service["Student service<br/>[AlunosServices.cs]"]
  node_student_contract["Student contract<br/>[IAlunoService.cs]"]
  node_student_model["Student model<br/>[Aluno.cs]"]
  node_login_model["Login model<br/>[LoginModel.cs]"]
  node_register_model["Registration model<br/>[RegisterModel.cs]"]
  node_token_model["JWT result<br/>[UserToken.cs]"]
end

subgraph group_persistence["Persistence"]
  node_db_context["EF context<br/>[AppDbContext.cs]"]
  node_database[("Application database")]
end

node_user(("User"))

node_user -->|"uses"| node_routed_app
node_routed_app -->|"renders"| node_client_routes
node_client_routes -->|"routes to"| node_login_page
node_client_routes -->|"routes to"| node_student_page
node_client_routes -->|"routes to"| node_student_form
node_login_page -->|"calls"| node_http_client
node_student_page -->|"calls"| node_http_client
node_student_form -->|"calls"| node_http_client
node_http_client -.->|"auth requests"| node_account_api
node_http_client -.->|"student requests"| node_students_api
node_user -->|"uses"| node_legacy_client
node_legacy_client -->|"CRUD requests"| node_students_api
node_account_api -->|"delegates auth"| node_auth_contract
node_auth_service -->|"implements"| node_auth_contract
node_account_api -->|"accepts"| node_login_model
node_account_api -->|"accepts"| node_register_model
node_account_api -->|"returns"| node_token_model
node_students_api -->|"delegates CRUD"| node_student_contract
node_student_service -->|"implements"| node_student_contract
node_students_api -->|"handles"| node_student_model
node_student_service -->|"queries and saves"| node_db_context
node_db_context -->|"maps"| node_student_model
node_db_context -.->|"persists data"| node_database

click node_routed_app "https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/App.js"
click node_client_routes "https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/routes.js"
click node_login_page "https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/pages/Login/index.js"
click node_student_page "https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/pages/Alunos/index.js"
click node_student_form "https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/pages/NovoAluno/index.js"
click node_http_client "https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/services/api.js"
click node_legacy_client "https://github.com/heitor3/gerenciadordealunos/blob/main/frontend/src/App.js"
click node_account_api "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Controllers/AccountController.cs"
click node_students_api "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Controllers/AlunosController.cs"
click node_auth_contract "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Services/IAuthenticate.cs"
click node_auth_service "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Services/AuthenticateServices.cs"
click node_student_service "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Services/AlunosServices.cs"
click node_student_contract "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Services/IAlunoService.cs"
click node_student_model "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Model/Aluno.cs"
click node_login_model "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/ViewModels/LoginModel.cs"
click node_register_model "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/ViewModels/RegisterModel.cs"
click node_token_model "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/ViewModels/UserToken.cs"
click node_db_context "https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Context/AppDbContext.cs"

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_routed_app,node_client_routes,node_login_page,node_student_page,node_student_form,node_http_client,node_legacy_client,node_user toneBlue
class node_account_api,node_students_api toneAmber
class node_auth_contract,node_auth_service,node_student_service,node_student_contract,node_student_model,node_login_model,node_register_model,node_token_model toneMint
class node_db_context,node_database toneRose
```

## Components

### React clients

- [Routed app](https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/App.js): `client-react/src/App.js`
- [Page routes](https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/routes.js): `client-react/src/routes.js`
- [Login page](https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/pages/Login/index.js): `client-react/src/pages/Login/index.js`
- [Student list](https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/pages/Alunos/index.js): `client-react/src/pages/Alunos/index.js`
- [Student form](https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/pages/NovoAluno/index.js): `client-react/src/pages/NovoAluno/index.js`
- [HTTP client](https://github.com/heitor3/gerenciadordealunos/blob/main/client-react/src/services/api.js): `client-react/src/services/api.js`
- [Direct CRUD client](https://github.com/heitor3/gerenciadordealunos/blob/main/frontend/src/App.js): `frontend/src/App.js`

### API endpoints

- [Account API](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Controllers/AccountController.cs): `AlunosApi/Controllers/AccountController.cs`
- [Students API](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Controllers/AlunosController.cs): `AlunosApi/Controllers/AlunosController.cs`

### Application services

- [Auth contract](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Services/IAuthenticate.cs): `AlunosApi/Services/IAuthenticate.cs`
- [Authentication service](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Services/AuthenticateServices.cs): `AlunosApi/Services/AuthenticateServices.cs`
- [Student service](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Services/AlunosServices.cs): `AlunosApi/Services/AlunosServices.cs`
- [Student contract](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Services/IAlunoService.cs): `AlunosApi/Services/IAlunoService.cs`
- [Student model](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Model/Aluno.cs): `AlunosApi/Model/Aluno.cs`
- [Login model](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/ViewModels/LoginModel.cs): `AlunosApi/ViewModels/LoginModel.cs`
- [Registration model](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/ViewModels/RegisterModel.cs): `AlunosApi/ViewModels/RegisterModel.cs`
- [JWT result](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/ViewModels/UserToken.cs): `AlunosApi/ViewModels/UserToken.cs`

### Persistence

- [EF context](https://github.com/heitor3/gerenciadordealunos/blob/main/AlunosApi/Context/AppDbContext.cs): `AlunosApi/Context/AppDbContext.cs`
- **Application database**

### Other components

- **User**

## Connections

- User → Routed app: uses (evidence: `README.md`)
- Routed app → Page routes: renders (evidence: `client-react/src/App.js`)
- Page routes → Login page: routes to (evidence: `client-react/src/routes.js`)
- Page routes → Student list: routes to (evidence: `client-react/src/routes.js`)
- Page routes → Student form: routes to (evidence: `client-react/src/routes.js`)
- Login page → HTTP client: calls (evidence: `client-react/src/pages/Login/index.js`)
- Student list → HTTP client: calls (evidence: `client-react/src/pages/Alunos/index.js`)
- Student form → HTTP client: calls (evidence: `client-react/src/pages/NovoAluno/index.js`)
- HTTP client → Account API: auth requests
- HTTP client → Students API: student requests
- User → Direct CRUD client: uses (evidence: `README.md`)
- Direct CRUD client → Students API: CRUD requests (evidence: `frontend/src/App.js`)
- Account API → Auth contract: delegates auth (evidence: `AlunosApi/Controllers/AccountController.cs`)
- Authentication service → Auth contract: implements (evidence: `AlunosApi/Services/AuthenticateServices.cs`)
- Account API → Login model: accepts (evidence: `AlunosApi/Controllers/AccountController.cs`)
- Account API → Registration model: accepts (evidence: `AlunosApi/Controllers/AccountController.cs`)
- Account API → JWT result: returns (evidence: `AlunosApi/Controllers/AccountController.cs`)
- Students API → Student contract: delegates CRUD (evidence: `AlunosApi/Controllers/AlunosController.cs`)
- Student service → Student contract: implements (evidence: `AlunosApi/Services/AlunosServices.cs`)
- Students API → Student model: handles (evidence: `AlunosApi/Controllers/AlunosController.cs`)
- Student service → EF context: queries and saves (evidence: `AlunosApi/Services/AlunosServices.cs`)
- EF context → Student model: maps (evidence: `AlunosApi/Context/AppDbContext.cs`)
- EF context → Application database: persists data
