# carmanolo/tesis_final architecture

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

- Interactive diagram: https://gitdiagram.com/carmanolo/tesis_final
- Repository: https://github.com/carmanolo/tesis_final

## Overview

FACECORE is a web system for student organizations to manage administrative records, funds, materials and communications. The main user journey is through the React application: users access a feature page, perform an operation, and receive or manage records through the backend API. Backend routes dispatch requests to controllers, which apply domain services and persist data through TypeORM. The README documents major capabilities beyond the sampled source; those branches are represented, but their internal links are dashed where implementation evidence was not provided.

Main entry points: [`backend/src/config/configDb.ts`](https://github.com/carmanolo/tesis_final/blob/main/backend/src/config/configDb.ts) (PostgreSQL), [`frontend/src/services`](https://github.com/carmanolo/tesis_final/tree/main/frontend/src/services) (API services), [`backend/src/controllers/auth.controller.ts`](https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/auth.controller.ts) (Authentication), [`backend/src/controllers/aporte.controller.ts`](https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/aporte.controller.ts) (Contribution handling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Web application"]
  node_frontend["Feature pages"]
  node_client_services["API services"]
  node_auth_ui["Login and recovery<br/>[Login.jsx]"]
  node_fund_ui["Funds and commitments<br/>[Aportes.jsx]"]
  node_records_ui["Records workspace<br/>[Reuniones.jsx]"]
end

subgraph group_access["Identity and access"]
  node_auth_routes["Authentication routes<br/>[auth.routes.ts]"]
  node_auth_controller["Authentication<br/>[auth.controller.ts]"]
  node_access_middleware["JWT and role checks"]
  node_user_controller["User administration<br/>[user.controller.ts]"]
  node_user_service["User operations<br/>[user.service.ts]"]
end

subgraph group_finance["Financial management"]
  node_fund_routes["Funds routes<br/>[aporte.routes.ts]"]
  node_fund_controller["Contribution handling"]
  node_commit_controller["Commitment handling"]
  node_commit_service["Commitment operations"]
  node_financial_utils["Financial calculations<br/>[aporte.utils.ts]"]
end

subgraph group_operations["Records and operations"]
  node_meeting_routes["Meeting and acta routes<br/>[reunion.routes.ts]"]
  node_meeting_service["Meeting operations<br/>[reunion.service.ts]"]
  node_operations_modules["Materials and respaldos"]
  node_audit["Activity history"]
end

subgraph group_persistence["Backend persistence"]
  node_domain_entities["Domain records"]
  node_database[("PostgreSQL<br/>[configDb.ts]")]
end

node_people(("Students and staff"))
node_mail["Email delivery"]
node_calendar["Google Calendar"]

node_people -.->|"use features"| node_frontend
node_frontend -.->|"request data"| node_client_services
node_auth_ui -.->|"authenticate"| node_client_services
node_fund_ui -.->|"manage funds"| node_client_services
node_records_ui -.->|"manage records"| node_client_services
node_client_services -.->|"call API"| node_auth_routes
node_client_services -.->|"call API"| node_fund_routes
node_client_services -.->|"call API"| node_meeting_routes
node_auth_routes -.->|"dispatch"| node_auth_controller
node_auth_controller -->|"record activity"| node_audit
node_auth_controller -->|"send recovery"| node_mail
node_auth_controller -->|"read and write"| node_database
node_fund_routes -->|"dispatch"| node_fund_controller
node_fund_controller -->|"calculate"| node_financial_utils
node_fund_controller -->|"read and write"| node_database
node_fund_controller -.->|"coordinate commitments"| node_commit_service
node_commit_controller -->|"invoke operations"| node_commit_service
node_commit_service -->|"format amounts"| node_financial_utils
node_commit_service -->|"read and write"| node_database
node_meeting_routes -.->|"dispatch"| node_meeting_service
node_meeting_service -->|"read and write"| node_database
node_meeting_service -->|"sync events"| node_calendar
node_user_controller -->|"invoke operations"| node_user_service
node_user_controller -->|"read and write"| node_database
node_access_middleware -->|"check roles"| node_database
node_database -->|"map records"| node_domain_entities
node_operations_modules -.->|"persist records"| node_database

click node_frontend "https://github.com/carmanolo/tesis_final/tree/main/frontend/src/pages"
click node_client_services "https://github.com/carmanolo/tesis_final/tree/main/frontend/src/services"
click node_auth_ui "https://github.com/carmanolo/tesis_final/blob/main/frontend/src/pages/Login.jsx"
click node_fund_ui "https://github.com/carmanolo/tesis_final/blob/main/frontend/src/pages/Aportes.jsx"
click node_records_ui "https://github.com/carmanolo/tesis_final/blob/main/frontend/src/pages/Reuniones.jsx"
click node_auth_routes "https://github.com/carmanolo/tesis_final/blob/main/backend/src/routes/auth.routes.ts"
click node_auth_controller "https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/auth.controller.ts"
click node_access_middleware "https://github.com/carmanolo/tesis_final/blob/main/backend/src/middleware/authentication.middleware.ts"
click node_user_controller "https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/user.controller.ts"
click node_user_service "https://github.com/carmanolo/tesis_final/blob/main/backend/src/services/user.service.ts"
click node_fund_routes "https://github.com/carmanolo/tesis_final/blob/main/backend/src/routes/aporte.routes.ts"
click node_fund_controller "https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/aporte.controller.ts"
click node_commit_controller "https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/compromiso.controller.ts"
click node_commit_service "https://github.com/carmanolo/tesis_final/blob/main/backend/src/services/compromiso.service.ts"
click node_financial_utils "https://github.com/carmanolo/tesis_final/blob/main/backend/src/utils/aporte.utils.ts"
click node_meeting_routes "https://github.com/carmanolo/tesis_final/blob/main/backend/src/routes/reunion.routes.ts"
click node_meeting_service "https://github.com/carmanolo/tesis_final/blob/main/backend/src/services/reunion.service.ts"
click node_operations_modules "https://github.com/carmanolo/tesis_final/tree/main/backend/src/services"
click node_audit "https://github.com/carmanolo/tesis_final/blob/main/backend/src/services/historialActividad.service.ts"
click node_domain_entities "https://github.com/carmanolo/tesis_final/tree/main/backend/src/entity"
click node_database "https://github.com/carmanolo/tesis_final/blob/main/backend/src/config/configDb.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_frontend,node_client_services,node_auth_ui,node_fund_ui,node_records_ui toneBlue
class node_auth_routes,node_auth_controller,node_access_middleware,node_user_controller,node_user_service toneAmber
class node_fund_routes,node_fund_controller,node_commit_controller,node_commit_service,node_financial_utils toneMint
class node_meeting_routes,node_meeting_service,node_operations_modules,node_audit toneRose
class node_domain_entities,node_database,node_people,node_mail,node_calendar toneIndigo
```

## Components

### Web application

- [Feature pages](https://github.com/carmanolo/tesis_final/tree/main/frontend/src/pages): `frontend/src/pages`
- [API services](https://github.com/carmanolo/tesis_final/tree/main/frontend/src/services): `frontend/src/services`
- [Login and recovery](https://github.com/carmanolo/tesis_final/blob/main/frontend/src/pages/Login.jsx): `frontend/src/pages/Login.jsx`
- [Funds and commitments](https://github.com/carmanolo/tesis_final/blob/main/frontend/src/pages/Aportes.jsx): `frontend/src/pages/Aportes.jsx`
- [Records workspace](https://github.com/carmanolo/tesis_final/blob/main/frontend/src/pages/Reuniones.jsx): `frontend/src/pages/Reuniones.jsx`

### Identity and access

- [Authentication routes](https://github.com/carmanolo/tesis_final/blob/main/backend/src/routes/auth.routes.ts): `backend/src/routes/auth.routes.ts`
- [Authentication](https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/auth.controller.ts): `backend/src/controllers/auth.controller.ts`
- [JWT and role checks](https://github.com/carmanolo/tesis_final/blob/main/backend/src/middleware/authentication.middleware.ts): `backend/src/middleware/authentication.middleware.ts`
- [User administration](https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/user.controller.ts): `backend/src/controllers/user.controller.ts`
- [User operations](https://github.com/carmanolo/tesis_final/blob/main/backend/src/services/user.service.ts): `backend/src/services/user.service.ts`

### Financial management

- [Funds routes](https://github.com/carmanolo/tesis_final/blob/main/backend/src/routes/aporte.routes.ts): `backend/src/routes/aporte.routes.ts`
- [Contribution handling](https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/aporte.controller.ts): `backend/src/controllers/aporte.controller.ts`
- [Commitment handling](https://github.com/carmanolo/tesis_final/blob/main/backend/src/controllers/compromiso.controller.ts): `backend/src/controllers/compromiso.controller.ts`
- [Commitment operations](https://github.com/carmanolo/tesis_final/blob/main/backend/src/services/compromiso.service.ts): `backend/src/services/compromiso.service.ts`
- [Financial calculations](https://github.com/carmanolo/tesis_final/blob/main/backend/src/utils/aporte.utils.ts): `backend/src/utils/aporte.utils.ts`

### Records and operations

- [Meeting and acta routes](https://github.com/carmanolo/tesis_final/blob/main/backend/src/routes/reunion.routes.ts): `backend/src/routes/reunion.routes.ts`
- [Meeting operations](https://github.com/carmanolo/tesis_final/blob/main/backend/src/services/reunion.service.ts): `backend/src/services/reunion.service.ts`
- [Materials and respaldos](https://github.com/carmanolo/tesis_final/tree/main/backend/src/services): `backend/src/services`
- [Activity history](https://github.com/carmanolo/tesis_final/blob/main/backend/src/services/historialActividad.service.ts): `backend/src/services/historialActividad.service.ts`

### Backend persistence

- [Domain records](https://github.com/carmanolo/tesis_final/tree/main/backend/src/entity): `backend/src/entity`
- [PostgreSQL](https://github.com/carmanolo/tesis_final/blob/main/backend/src/config/configDb.ts): `backend/src/config/configDb.ts`

### Other components

- **Students and staff**
- **Email delivery**
- **Google Calendar**

## Connections

- Students and staff → Feature pages: use features
- Feature pages → API services: request data
- Login and recovery → API services: authenticate
- Funds and commitments → API services: manage funds
- Records workspace → API services: manage records
- API services → Authentication routes: call API
- API services → Funds routes: call API
- API services → Meeting and acta routes: call API
- Authentication routes → Authentication: dispatch
- Authentication → Activity history: record activity (evidence: `backend/src/controllers/auth.controller.ts`)
- Authentication → Email delivery: send recovery (evidence: `backend/src/controllers/auth.controller.ts`)
- Authentication → PostgreSQL: read and write (evidence: `backend/src/controllers/auth.controller.ts`)
- Funds routes → Contribution handling: dispatch (evidence: `backend/src/routes/aporte.routes.ts`)
- Contribution handling → Financial calculations: calculate (evidence: `backend/src/controllers/aporte.controller.ts`)
- Contribution handling → PostgreSQL: read and write (evidence: `backend/src/controllers/aporte.controller.ts`)
- Contribution handling → Commitment operations: coordinate commitments
- Commitment handling → Commitment operations: invoke operations (evidence: `backend/src/controllers/compromiso.controller.ts`)
- Commitment operations → Financial calculations: format amounts (evidence: `backend/src/services/compromiso.service.ts`)
- Commitment operations → PostgreSQL: read and write (evidence: `backend/src/services/compromiso.service.ts`)
- Meeting and acta routes → Meeting operations: dispatch
- Meeting operations → PostgreSQL: read and write (evidence: `backend/src/services/reunion.service.ts`)
- Meeting operations → Google Calendar: sync events (evidence: `backend/src/services/reunion.service.ts`)
- User administration → User operations: invoke operations (evidence: `backend/src/controllers/user.controller.ts`)
- User administration → PostgreSQL: read and write (evidence: `backend/src/controllers/user.controller.ts`)
- JWT and role checks → PostgreSQL: check roles
- PostgreSQL → Domain records: map records (evidence: `backend/src/config/configDb.ts`)
- Materials and respaldos → PostgreSQL: persist records (evidence: `backend/src/services/compromiso.service.ts`)
