# pedrohenriqwem/uniconnectwebservice architecture

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

- Interactive diagram: https://gitdiagram.com/pedrohenriqwem/uniconnectwebservice
- Repository: https://github.com/pedrohenriqwem/uniconnectwebservice

## Overview

SistemaAcademico is a student/course administration product with a React interface and an ASP.NET Core API. Its main workflow is navigating to a catalog or enrollment page, editing or viewing records, and handling the corresponding API operation through a controller, service, and in-memory Entity Framework context. The domain covers students, courses, subjects, and enrollments. The README’s screenshots indicate these management screens; source excerpts do not establish how the frontend communicates with the API, so that connection is omitted.

Main entry points: [`SistemaAcademico/SistemaAcademico.Api/Program.cs`](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Program.cs) (API setup), [`SistemaAcademico/SistemaAcademico.Infrastructure/Data/AppDbContext.cs`](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Infrastructure/Data/AppDbContext.cs) (EF data context), [`trabalho-web2final/src/App.tsx`](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/App.tsx) (App router), [`SistemaAcademico/SistemaAcademico.Domain/Entities`](https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/SistemaAcademico/SistemaAcademico.Domain/Entities) (Academic records)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_app["App router<br/>[App.tsx]"]
  node_student_page["Student page<br/>[AlunoPage.tsx]"]
  node_course_page["Course page<br/>[CursoPage.tsx]"]
  node_subject_page["Subject page<br/>[DisciplinaPage.tsx]"]
  node_enrollment_page["Enrollment page<br/>[MatriculaPage.tsx]"]
  node_forms["Record forms"]
  node_tables["Record tables"]
end

subgraph group_api["API"]
  node_student_controller["Student endpoint"]
  node_course_controller["Course endpoint"]
  node_subject_controller["Subject endpoint"]
  node_enrollment_controller["Enrollment endpoint"]
  node_startup["API setup<br/>[Program.cs]"]
end

subgraph group_application["Application services"]
  node_contracts["Service contracts<br/>[Interfaces]"]
  node_student_service["Student service<br/>[AlunoService.cs]"]
  node_course_service["Course service<br/>[CursoService.cs]"]
  node_subject_service["Subject service"]
  node_enrollment_service["Enrollment service"]
end

subgraph group_domain["Academic domain"]
  node_entities["Academic records<br/>[Entities]"]
end

subgraph group_persistence["Persistence"]
  node_db[("EF data context<br/>[AppDbContext.cs]")]
end

node_user(("User"))

node_user -->|"navigates"| node_app
node_app -->|"routes to"| node_student_page
node_app -->|"routes to"| node_course_page
node_app -->|"routes to"| node_subject_page
node_app -->|"routes to"| node_enrollment_page
node_student_page -->|"uses form"| node_forms
node_student_page -->|"uses table"| node_tables
node_subject_page -->|"uses form"| node_forms
node_subject_page -->|"uses table"| node_tables
node_enrollment_page -->|"uses form"| node_forms
node_enrollment_page -->|"uses table"| node_tables
node_student_controller -->|"calls"| node_contracts
node_course_controller -->|"calls"| node_contracts
node_subject_controller -->|"calls"| node_contracts
node_enrollment_controller -->|"calls"| node_contracts
node_startup -->|"registers"| node_db
node_startup -->|"registers"| node_student_service
node_startup -->|"registers"| node_course_service
node_startup -->|"registers"| node_subject_service
node_startup -->|"registers"| node_enrollment_service
node_student_service -->|"reads and writes"| node_db
node_course_service -->|"reads and writes"| node_db
node_subject_service -->|"reads and writes"| node_db
node_enrollment_service -->|"reads and writes"| node_db
node_db -->|"maps records"| node_entities
node_course_service -->|"operates on"| node_entities
node_subject_service -->|"operates on"| node_entities
node_student_service -->|"operates on"| node_entities
node_startup -->|"seeds records"| node_entities

click node_app "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/App.tsx"
click node_student_page "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/pages/AlunoPage.tsx"
click node_course_page "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/pages/CursoPage.tsx"
click node_subject_page "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/pages/DisciplinaPage.tsx"
click node_enrollment_page "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/pages/MatriculaPage.tsx"
click node_forms "https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/trabalho-web2final/src/components/forms"
click node_tables "https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/trabalho-web2final/src/components/tables"
click node_student_controller "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Controllers/AlunosController.cs"
click node_course_controller "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Controllers/CursosController.cs"
click node_subject_controller "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Controllers/DisciplinasController.cs"
click node_enrollment_controller "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Controllers/MatriculasController.cs"
click node_startup "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Program.cs"
click node_contracts "https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/SistemaAcademico/SistemaAcademico.Application/Interfaces"
click node_student_service "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Application/Services/AlunoService.cs"
click node_course_service "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Application/Services/CursoService.cs"
click node_subject_service "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Application/Services/DisciplinaService.cs"
click node_enrollment_service "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Application/Services/MatriculaService.cs"
click node_entities "https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/SistemaAcademico/SistemaAcademico.Domain/Entities"
click node_db "https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Infrastructure/Data/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_app,node_student_page,node_course_page,node_subject_page,node_enrollment_page,node_forms,node_tables,node_user toneBlue
class node_student_controller,node_course_controller,node_subject_controller,node_enrollment_controller,node_startup toneAmber
class node_contracts,node_student_service,node_course_service,node_subject_service,node_enrollment_service toneMint
class node_entities toneRose
class node_db toneIndigo
```

## Components

### Web interface

- [App router](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/App.tsx): `trabalho-web2final/src/App.tsx`
- [Student page](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/pages/AlunoPage.tsx): `trabalho-web2final/src/pages/AlunoPage.tsx`
- [Course page](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/pages/CursoPage.tsx): `trabalho-web2final/src/pages/CursoPage.tsx`
- [Subject page](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/pages/DisciplinaPage.tsx): `trabalho-web2final/src/pages/DisciplinaPage.tsx`
- [Enrollment page](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/trabalho-web2final/src/pages/MatriculaPage.tsx): `trabalho-web2final/src/pages/MatriculaPage.tsx`
- [Record forms](https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/trabalho-web2final/src/components/forms): `trabalho-web2final/src/components/forms`
- [Record tables](https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/trabalho-web2final/src/components/tables): `trabalho-web2final/src/components/tables`

### API

- [Student endpoint](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Controllers/AlunosController.cs): `SistemaAcademico/SistemaAcademico.Api/Controllers/AlunosController.cs`
- [Course endpoint](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Controllers/CursosController.cs): `SistemaAcademico/SistemaAcademico.Api/Controllers/CursosController.cs`
- [Subject endpoint](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Controllers/DisciplinasController.cs): `SistemaAcademico/SistemaAcademico.Api/Controllers/DisciplinasController.cs`
- [Enrollment endpoint](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Controllers/MatriculasController.cs): `SistemaAcademico/SistemaAcademico.Api/Controllers/MatriculasController.cs`
- [API setup](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Api/Program.cs): `SistemaAcademico/SistemaAcademico.Api/Program.cs`

### Application services

- [Service contracts](https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/SistemaAcademico/SistemaAcademico.Application/Interfaces): `SistemaAcademico/SistemaAcademico.Application/Interfaces`
- [Student service](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Application/Services/AlunoService.cs): `SistemaAcademico/SistemaAcademico.Application/Services/AlunoService.cs`
- [Course service](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Application/Services/CursoService.cs): `SistemaAcademico/SistemaAcademico.Application/Services/CursoService.cs`
- [Subject service](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Application/Services/DisciplinaService.cs): `SistemaAcademico/SistemaAcademico.Application/Services/DisciplinaService.cs`
- [Enrollment service](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Application/Services/MatriculaService.cs): `SistemaAcademico/SistemaAcademico.Application/Services/MatriculaService.cs`

### Academic domain

- [Academic records](https://github.com/pedrohenriqwem/uniconnectwebservice/tree/main/SistemaAcademico/SistemaAcademico.Domain/Entities): `SistemaAcademico/SistemaAcademico.Domain/Entities`

### Persistence

- [EF data context](https://github.com/pedrohenriqwem/uniconnectwebservice/blob/main/SistemaAcademico/SistemaAcademico.Infrastructure/Data/AppDbContext.cs): `SistemaAcademico/SistemaAcademico.Infrastructure/Data/AppDbContext.cs`

### Other components

- **User**

## Connections

- User → App router: navigates (evidence: `trabalho-web2final/src/App.tsx`)
- App router → Student page: routes to (evidence: `trabalho-web2final/src/App.tsx`)
- App router → Course page: routes to (evidence: `trabalho-web2final/src/App.tsx`)
- App router → Subject page: routes to (evidence: `trabalho-web2final/src/App.tsx`)
- App router → Enrollment page: routes to (evidence: `trabalho-web2final/src/App.tsx`)
- Student page → Record forms: uses form (evidence: `trabalho-web2final/src/pages/AlunoPage.tsx`)
- Student page → Record tables: uses table (evidence: `trabalho-web2final/src/pages/AlunoPage.tsx`)
- Subject page → Record forms: uses form (evidence: `trabalho-web2final/src/pages/DisciplinaPage.tsx`)
- Subject page → Record tables: uses table (evidence: `trabalho-web2final/src/pages/DisciplinaPage.tsx`)
- Enrollment page → Record forms: uses form (evidence: `trabalho-web2final/src/pages/MatriculaPage.tsx`)
- Enrollment page → Record tables: uses table (evidence: `trabalho-web2final/src/pages/MatriculaPage.tsx`)
- Student endpoint → Service contracts: calls (evidence: `SistemaAcademico/SistemaAcademico.Api/Controllers/AlunosController.cs`)
- Course endpoint → Service contracts: calls (evidence: `SistemaAcademico/SistemaAcademico.Api/Controllers/CursosController.cs`)
- Subject endpoint → Service contracts: calls (evidence: `SistemaAcademico/SistemaAcademico.Api/Controllers/DisciplinasController.cs`)
- Enrollment endpoint → Service contracts: calls (evidence: `SistemaAcademico/SistemaAcademico.Api/Controllers/MatriculasController.cs`)
- API setup → EF data context: registers (evidence: `SistemaAcademico/SistemaAcademico.Api/Program.cs`)
- API setup → Student service: registers (evidence: `SistemaAcademico/SistemaAcademico.Api/Program.cs`)
- API setup → Course service: registers (evidence: `SistemaAcademico/SistemaAcademico.Api/Program.cs`)
- API setup → Subject service: registers (evidence: `SistemaAcademico/SistemaAcademico.Api/Program.cs`)
- API setup → Enrollment service: registers (evidence: `SistemaAcademico/SistemaAcademico.Api/Program.cs`)
- Student service → EF data context: reads and writes (evidence: `SistemaAcademico/SistemaAcademico.Application/Services/AlunoService.cs`)
- Course service → EF data context: reads and writes (evidence: `SistemaAcademico/SistemaAcademico.Application/Services/CursoService.cs`)
- Subject service → EF data context: reads and writes (evidence: `SistemaAcademico/SistemaAcademico.Application/Services/DisciplinaService.cs`)
- Enrollment service → EF data context: reads and writes (evidence: `SistemaAcademico/SistemaAcademico.Application/Services/MatriculaService.cs`)
- EF data context → Academic records: maps records (evidence: `SistemaAcademico/SistemaAcademico.Infrastructure/Data/AppDbContext.cs`)
- Course service → Academic records: operates on (evidence: `SistemaAcademico/SistemaAcademico.Application/Services/CursoService.cs`)
- Subject service → Academic records: operates on (evidence: `SistemaAcademico/SistemaAcademico.Application/Services/DisciplinaService.cs`)
- Student service → Academic records: operates on (evidence: `SistemaAcademico/SistemaAcademico.Application/Services/AlunoService.cs`)
- API setup → Academic records: seeds records (evidence: `SistemaAcademico/SistemaAcademico.Api/Program.cs`)
