# iovargasjeff/ciencias-net architecture

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

- Interactive diagram: https://gitdiagram.com/iovargasjeff/ciencias-net
- Repository: https://github.com/iovargasjeff/ciencias-net

## Overview

CienciasNET is a school academic and administrative web system. Its intended user workflow is to use a React portal or attendance station, send requests to the Laravel API, and receive operational or academic records; Laravel owns permissions, rules, and persistence. Major product areas include academics, facial attendance, finance and payroll, communications, schedules, materials, incidents, and psychology. The README describes PostgreSQL, queues/mail, private files, and a separate facial service. The repository is explicitly in scaffolding phase, so several module connections are documented capabilities rather than verified runtime calls.

Main entry points: [`backend/routes/api.php`](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/routes/api.php) (Laravel API), [`backend/app/Modules/Usuarios/Presentation/Controllers`](https://github.com/iovargasjeff/ciencias-net/tree/main/backend/app/Modules/Usuarios/Presentation/Controllers) (Accounts and biometrics), [`backend/app/Modules/Usuarios/Infrastructure/Models/User.php`](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/User.php) (User accounts), [`backend/app/Modules/Academico/Presentation/Controllers/AcademicController.php`](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Academico/Presentation/Controllers/AcademicController.php) (Academic structure)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["User interfaces"]
  node_portal["Web portals<br/>[PortalLayout.tsx]"]
  node_stationui["Attendance station UI"]
end

subgraph group_core["API and identity"]
  node_api["Laravel API<br/>[api.php]"]
  node_identity["Accounts and biometrics"]
  node_auth["Session authentication"]
  node_student[("Student identity<br/>[Alumno.php]")]
  node_user[("User accounts<br/>[User.php]")]
  node_controllerbase["Controller base<br/>[Controller.php]"]
  node_facialclient["Facial service client"]
  node_facialunavailable["Facial service errors"]
  node_teacher[("Teacher identity<br/>[Docente.php]")]
  node_parent[("Parent identity<br/>[Padre.php]")]
end

subgraph group_school["Academic operations"]
  node_academic["Academic structure"]
  node_assessment["Assessments and grades"]
  node_attendance["Attendance processing"]
  node_schedules["Schedules and calendar"]
  node_materials["Learning materials"]
  node_academicmodels[("Academic records<br/>[CargaAcademica.php]")]
end

subgraph group_admin["Administrative services"]
  node_finance["Finance and payroll"]
  node_communications["Communications"]
  node_incidents["Incidents"]
  node_psychology["Psychology care"]
  node_notifications["Notifications"]
  node_paymentobligation[("Payment obligations<br/>[ObligacionPago.php]")]
  node_obligationresource["Obligation API resource"]
end

subgraph group_platform["Data and integrations"]
  node_postgres[("PostgreSQL records")]
  node_privatefiles[("Private files")]
  node_queues["Queues and mail"]
  node_facial["Facial recognition service<br/>[main.py]"]
  node_audit["Audit logging<br/>[AuditLogger.php]"]
  node_demo["Demo data seeder"]
end

node_people(("School users"))

node_people -->|"uses"| node_portal
node_people -->|"uses"| node_stationui
node_portal -->|"calls API"| node_api
node_stationui -->|"calls API"| node_api
node_api -->|"persists records"| node_postgres
node_api -->|"dispatches work"| node_queues
node_api -->|"stores files"| node_privatefiles
node_api -->|"requests recognition"| node_facial
node_identity -->|"uses client"| node_facialclient
node_facialclient -.->|"requests recognition"| node_facial
node_api -.->|"serves capability"| node_academic
node_api -.->|"serves capability"| node_assessment
node_api -.->|"serves capability"| node_attendance
node_api -.->|"serves capability"| node_finance
node_api -.->|"serves capability"| node_communications
node_api -.->|"serves capability"| node_schedules
node_api -.->|"serves capability"| node_materials
node_api -.->|"serves capability"| node_incidents
node_api -.->|"serves capability"| node_psychology
node_api -.->|"serves capability"| node_notifications
node_academic -->|"reads and writes"| node_academicmodels
node_finance -->|"queries obligations"| node_paymentobligation
node_finance -->|"formats response"| node_obligationresource
node_student -->|"has enrollments"| node_academicmodels
node_user -->|"has profile"| node_student
node_user -->|"has profile"| node_teacher
node_user -->|"has profile"| node_parent
node_identity -->|"loads student"| node_student
node_academic -->|"extends"| node_controllerbase
node_identity -->|"extends"| node_controllerbase
node_demo -.->|"seeds data"| node_postgres

click node_portal "https://github.com/iovargasjeff/ciencias-net/blob/main/frontend/src/app/layouts/PortalLayout.tsx"
click node_stationui "https://github.com/iovargasjeff/ciencias-net/tree/main/frontend/src/features/stations"
click node_api "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/routes/api.php"
click node_identity "https://github.com/iovargasjeff/ciencias-net/tree/main/backend/app/Modules/Usuarios/Presentation/Controllers"
click node_auth "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Auth/Presentation/Controllers/SessionController.php"
click node_academic "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Academico/Presentation/Controllers/AcademicController.php"
click node_assessment "https://github.com/iovargasjeff/ciencias-net/tree/main/backend/app/Modules/Academico/Application/UseCases"
click node_attendance "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Asistencia/Domain/Services/StudentAttendanceProcessor.php"
click node_schedules "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Horarios/Presentation/Controllers/ScheduleController.php"
click node_materials "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Materiales/Presentation/Controllers/MaterialController.php"
click node_finance "https://github.com/iovargasjeff/ciencias-net/tree/main/backend/app/Modules/Finanzas/Presentation/Controllers"
click node_communications "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Comunicados/Presentation/Controllers/CommunicationController.php"
click node_incidents "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Incidencias/Presentation/Controllers/IncidentController.php"
click node_psychology "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Psicologia/Presentation/Controllers/PsychologyCareController.php"
click node_notifications "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Notificaciones/Presentation/Controllers/NotificationController.php"
click node_privatefiles "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Shared/Application/PrivateFileService.php"
click node_queues "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Finanzas/Application/Jobs/SendPaymentRemindersJob.php"
click node_facial "https://github.com/iovargasjeff/ciencias-net/blob/main/facial-service/app/main.py"
click node_audit "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Support/AuditLogger.php"
click node_academicmodels "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Academico/Infrastructure/Models/CargaAcademica.php"
click node_student "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/Alumno.php"
click node_user "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/User.php"
click node_paymentobligation "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Finanzas/Infrastructure/Models/ObligacionPago.php"
click node_obligationresource "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Finanzas/Presentation/Resources/PaymentObligationResource.php"
click node_controllerbase "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Http/Controllers/Controller.php"
click node_facialclient "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Facial/FacialServiceClient.php"
click node_facialunavailable "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Facial/FacialServiceUnavailable.php"
click node_teacher "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/Docente.php"
click node_parent "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/Padre.php"
click node_demo "https://github.com/iovargasjeff/ciencias-net/blob/main/backend/database/seeders/DemoCompleteSeeder.php"

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_portal,node_stationui,node_people toneBlue
class node_api,node_identity,node_auth,node_student,node_user,node_controllerbase,node_facialclient,node_facialunavailable,node_teacher,node_parent toneAmber
class node_academic,node_assessment,node_attendance,node_schedules,node_materials,node_academicmodels toneMint
class node_finance,node_communications,node_incidents,node_psychology,node_notifications,node_paymentobligation,node_obligationresource toneRose
class node_postgres,node_privatefiles,node_queues,node_facial,node_audit,node_demo toneIndigo
```

## Components

### User interfaces

- [Web portals](https://github.com/iovargasjeff/ciencias-net/blob/main/frontend/src/app/layouts/PortalLayout.tsx): `frontend/src/app/layouts/PortalLayout.tsx`
- [Attendance station UI](https://github.com/iovargasjeff/ciencias-net/tree/main/frontend/src/features/stations): `frontend/src/features/stations`

### API and identity

- [Laravel API](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/routes/api.php): `backend/routes/api.php`
- [Accounts and biometrics](https://github.com/iovargasjeff/ciencias-net/tree/main/backend/app/Modules/Usuarios/Presentation/Controllers): `backend/app/Modules/Usuarios/Presentation/Controllers`
- [Session authentication](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Auth/Presentation/Controllers/SessionController.php): `backend/app/Modules/Auth/Presentation/Controllers/SessionController.php`
- [Student identity](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/Alumno.php): `backend/app/Modules/Usuarios/Infrastructure/Models/Alumno.php`
- [User accounts](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/User.php): `backend/app/Modules/Usuarios/Infrastructure/Models/User.php`
- [Controller base](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Http/Controllers/Controller.php): `backend/app/Http/Controllers/Controller.php`
- [Facial service client](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Facial/FacialServiceClient.php): `backend/app/Modules/Usuarios/Infrastructure/Facial/FacialServiceClient.php`
- [Facial service errors](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Facial/FacialServiceUnavailable.php): `backend/app/Modules/Usuarios/Infrastructure/Facial/FacialServiceUnavailable.php`
- [Teacher identity](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/Docente.php): `backend/app/Modules/Usuarios/Infrastructure/Models/Docente.php`
- [Parent identity](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Usuarios/Infrastructure/Models/Padre.php): `backend/app/Modules/Usuarios/Infrastructure/Models/Padre.php`

### Academic operations

- [Academic structure](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Academico/Presentation/Controllers/AcademicController.php): `backend/app/Modules/Academico/Presentation/Controllers/AcademicController.php`
- [Assessments and grades](https://github.com/iovargasjeff/ciencias-net/tree/main/backend/app/Modules/Academico/Application/UseCases): `backend/app/Modules/Academico/Application/UseCases`
- [Attendance processing](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Asistencia/Domain/Services/StudentAttendanceProcessor.php): `backend/app/Modules/Asistencia/Domain/Services/StudentAttendanceProcessor.php`
- [Schedules and calendar](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Horarios/Presentation/Controllers/ScheduleController.php): `backend/app/Modules/Horarios/Presentation/Controllers/ScheduleController.php`
- [Learning materials](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Materiales/Presentation/Controllers/MaterialController.php): `backend/app/Modules/Materiales/Presentation/Controllers/MaterialController.php`
- [Academic records](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Academico/Infrastructure/Models/CargaAcademica.php): `backend/app/Modules/Academico/Infrastructure/Models/CargaAcademica.php`

### Administrative services

- [Finance and payroll](https://github.com/iovargasjeff/ciencias-net/tree/main/backend/app/Modules/Finanzas/Presentation/Controllers): `backend/app/Modules/Finanzas/Presentation/Controllers`
- [Communications](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Comunicados/Presentation/Controllers/CommunicationController.php): `backend/app/Modules/Comunicados/Presentation/Controllers/CommunicationController.php`
- [Incidents](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Incidencias/Presentation/Controllers/IncidentController.php): `backend/app/Modules/Incidencias/Presentation/Controllers/IncidentController.php`
- [Psychology care](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Psicologia/Presentation/Controllers/PsychologyCareController.php): `backend/app/Modules/Psicologia/Presentation/Controllers/PsychologyCareController.php`
- [Notifications](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Notificaciones/Presentation/Controllers/NotificationController.php): `backend/app/Modules/Notificaciones/Presentation/Controllers/NotificationController.php`
- [Payment obligations](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Finanzas/Infrastructure/Models/ObligacionPago.php): `backend/app/Modules/Finanzas/Infrastructure/Models/ObligacionPago.php`
- [Obligation API resource](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Finanzas/Presentation/Resources/PaymentObligationResource.php): `backend/app/Modules/Finanzas/Presentation/Resources/PaymentObligationResource.php`

### Data and integrations

- **PostgreSQL records**
- [Private files](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Shared/Application/PrivateFileService.php): `backend/app/Modules/Shared/Application/PrivateFileService.php`
- [Queues and mail](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Modules/Finanzas/Application/Jobs/SendPaymentRemindersJob.php): `backend/app/Modules/Finanzas/Application/Jobs/SendPaymentRemindersJob.php`
- [Facial recognition service](https://github.com/iovargasjeff/ciencias-net/blob/main/facial-service/app/main.py): `facial-service/app/main.py`
- [Audit logging](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/app/Support/AuditLogger.php): `backend/app/Support/AuditLogger.php`
- [Demo data seeder](https://github.com/iovargasjeff/ciencias-net/blob/main/backend/database/seeders/DemoCompleteSeeder.php): `backend/database/seeders/DemoCompleteSeeder.php`

### Other components

- **School users**

## Connections

- School users → Web portals: uses (evidence: `README.md`)
- School users → Attendance station UI: uses (evidence: `README.md`)
- Web portals → Laravel API: calls API (evidence: `README.md`)
- Attendance station UI → Laravel API: calls API (evidence: `README.md`)
- Laravel API → PostgreSQL records: persists records (evidence: `README.md`)
- Laravel API → Queues and mail: dispatches work (evidence: `README.md`)
- Laravel API → Private files: stores files (evidence: `README.md`)
- Laravel API → Facial recognition service: requests recognition (evidence: `README.md`)
- Accounts and biometrics → Facial service client: uses client (evidence: `backend/app/Modules/Usuarios/Presentation/Controllers/BiometricController.php`)
- Facial service client → Facial recognition service: requests recognition
- Laravel API → Academic structure: serves capability (evidence: `backend/routes/api.php`)
- Laravel API → Assessments and grades: serves capability
- Laravel API → Attendance processing: serves capability
- Laravel API → Finance and payroll: serves capability (evidence: `backend/routes/api.php`)
- Laravel API → Communications: serves capability (evidence: `backend/routes/api.php`)
- Laravel API → Schedules and calendar: serves capability (evidence: `backend/routes/api.php`)
- Laravel API → Learning materials: serves capability (evidence: `backend/routes/api.php`)
- Laravel API → Incidents: serves capability (evidence: `backend/routes/api.php`)
- Laravel API → Psychology care: serves capability (evidence: `backend/routes/api.php`)
- Laravel API → Notifications: serves capability (evidence: `backend/routes/api.php`)
- Academic structure → Academic records: reads and writes (evidence: `backend/app/Modules/Academico/Presentation/Controllers/AcademicController.php`)
- Finance and payroll → Payment obligations: queries obligations (evidence: `backend/app/Modules/Finanzas/Presentation/Controllers/FinanceQueryController.php`)
- Finance and payroll → Obligation API resource: formats response (evidence: `backend/app/Modules/Finanzas/Presentation/Controllers/FinanceQueryController.php`)
- Student identity → Academic records: has enrollments (evidence: `backend/app/Modules/Usuarios/Infrastructure/Models/Alumno.php`)
- User accounts → Student identity: has profile (evidence: `backend/app/Modules/Usuarios/Infrastructure/Models/User.php`)
- User accounts → Teacher identity: has profile (evidence: `backend/app/Modules/Usuarios/Infrastructure/Models/User.php`)
- User accounts → Parent identity: has profile (evidence: `backend/app/Modules/Usuarios/Infrastructure/Models/User.php`)
- Accounts and biometrics → Student identity: loads student (evidence: `backend/app/Modules/Usuarios/Presentation/Controllers/BiometricController.php`)
- Academic structure → Controller base: extends (evidence: `backend/app/Modules/Academico/Presentation/Controllers/AcademicController.php`)
- Accounts and biometrics → Controller base: extends (evidence: `backend/app/Modules/Usuarios/Presentation/Controllers/BiometricController.php`)
- Demo data seeder → PostgreSQL records: seeds data
