# rodrigo-amaya/proyecto-red-social architecture

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

- Interactive diagram: https://gitdiagram.com/rodrigo-amaya/proyecto-red-social
- Repository: https://github.com/rodrigo-amaya/proyecto-red-social

## Overview

This appears to be a Spanish-language academic community for users, professors, subjects, publications, and comments, with administrator review and login/registration screens. A likely user journey is account access, browsing or creating publications, and engaging with comments; professor profiles and subject data form related domain areas. The source excerpts are empty and the README provides no documentation, so runtime routing, persistence, and calls between components cannot be verified; no connections are asserted.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_entry["Web entry<br/>[index.php]"]
  node_api["API entry<br/>[index.php]"]
  node_views["Page views"]
  node_browser_js["Page interactions<br/>[pages.js]"]
  node_global_css["Global styles<br/>[global.css]"]
  node_page_css["Page styles<br/>[pages.css]"]
  node_users_view["User profile view<br/>[perfilUsuarios.php]"]
  node_professor_view["Professor profile view<br/>[perfilProfesor.php]"]
  node_publications_view["Publication home view<br/>[inicio.php]"]
end

subgraph group_accounts["Accounts and review"]
  node_login_view["Login view<br/>[login.php]"]
  node_register_view["Registration view<br/>[registro.php]"]
  node_user_controller["User controller"]
  node_user_model["User model<br/>[usuario.php]"]
  node_admin_review["Request review view"]
  node_database_config["Database configuration<br/>[database.php]"]
  node_schema[("Database schema<br/>[schema.sql]")]
end

subgraph group_academics["Academic directory"]
  node_professor_controller["Professor controller"]
  node_professor_model["Professor model<br/>[profesor.php]"]
  node_subject_controller["Subject controller"]
  node_subject_model["Subject model<br/>[materia.php]"]
  node_seed_data["Reference seed data"]
end

subgraph group_community["Community content"]
  node_publication_controller["Publication controller"]
  node_publication_model["Publication model<br/>[publicacion.php]"]
  node_comment_controller["Comment controller"]
  node_comment_model["Comment model<br/>[comentario.php]"]
end

node_visitor(("Visitor or user"))

click node_entry "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/index.php"
click node_api "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/api/index.php"
click node_views "https://github.com/rodrigo-amaya/proyecto-red-social/tree/master/public/views"
click node_browser_js "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/js/pages.js"
click node_global_css "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/css/global.css"
click node_page_css "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/css/pages.css"
click node_users_view "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/usuarios/perfilUsuarios.php"
click node_professor_view "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/profesores/perfilProfesor.php"
click node_publications_view "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/publicaciones/inicio.php"
click node_login_view "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/auth/login.php"
click node_register_view "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/auth/registro.php"
click node_user_controller "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloUsuarios/Controller/usuarioController.php"
click node_user_model "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloUsuarios/Model/usuario.php"
click node_admin_review "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/administrador/revisarSolicitud.php"
click node_professor_controller "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloProfesores/Controller/profesoresController.php"
click node_professor_model "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloProfesores/Model/profesor.php"
click node_subject_controller "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloMaterias/Controller/materiaController.php"
click node_subject_model "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloMaterias/Model/materia.php"
click node_publication_controller "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloPublicaciones/Controller/publicacionController.php"
click node_publication_model "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloPublicaciones/Model/publicacion.php"
click node_comment_controller "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloComentarios/Controller/comentarioController.php"
click node_comment_model "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloComentarios/Model/comentario.php"
click node_database_config "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/app/config/database.php"
click node_schema "https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/database/schema.sql"
click node_seed_data "https://github.com/rodrigo-amaya/proyecto-red-social/tree/master/database/seeders"

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_entry,node_api,node_views,node_browser_js,node_global_css,node_page_css,node_users_view,node_professor_view,node_publications_view,node_visitor toneBlue
class node_login_view,node_register_view,node_user_controller,node_user_model,node_admin_review,node_database_config,node_schema toneAmber
class node_professor_controller,node_professor_model,node_subject_controller,node_subject_model,node_seed_data toneMint
class node_publication_controller,node_publication_model,node_comment_controller,node_comment_model toneRose
```

## Components

### Web interface

- [Web entry](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/index.php): `index.php`
- [API entry](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/api/index.php): `api/index.php`
- [Page views](https://github.com/rodrigo-amaya/proyecto-red-social/tree/master/public/views): `public/views`
- [Page interactions](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/js/pages.js): `public/js/pages.js`
- [Global styles](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/css/global.css): `public/css/global.css`
- [Page styles](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/css/pages.css): `public/css/pages.css`
- [User profile view](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/usuarios/perfilUsuarios.php): `public/views/usuarios/perfilUsuarios.php`
- [Professor profile view](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/profesores/perfilProfesor.php): `public/views/profesores/perfilProfesor.php`
- [Publication home view](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/publicaciones/inicio.php): `public/views/publicaciones/inicio.php`

### Accounts and review

- [Login view](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/auth/login.php): `public/views/auth/login.php`
- [Registration view](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/auth/registro.php): `public/views/auth/registro.php`
- [User controller](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloUsuarios/Controller/usuarioController.php): `src/ModuloUsuarios/Controller/usuarioController.php`
- [User model](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloUsuarios/Model/usuario.php): `src/ModuloUsuarios/Model/usuario.php`
- [Request review view](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/public/views/administrador/revisarSolicitud.php): `public/views/administrador/revisarSolicitud.php`
- [Database configuration](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/app/config/database.php): `app/config/database.php`
- [Database schema](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/database/schema.sql): `database/schema.sql`

### Academic directory

- [Professor controller](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloProfesores/Controller/profesoresController.php): `src/ModuloProfesores/Controller/profesoresController.php`
- [Professor model](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloProfesores/Model/profesor.php): `src/ModuloProfesores/Model/profesor.php`
- [Subject controller](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloMaterias/Controller/materiaController.php): `src/ModuloMaterias/Controller/materiaController.php`
- [Subject model](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloMaterias/Model/materia.php): `src/ModuloMaterias/Model/materia.php`
- [Reference seed data](https://github.com/rodrigo-amaya/proyecto-red-social/tree/master/database/seeders): `database/seeders`

### Community content

- [Publication controller](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloPublicaciones/Controller/publicacionController.php): `src/ModuloPublicaciones/Controller/publicacionController.php`
- [Publication model](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloPublicaciones/Model/publicacion.php): `src/ModuloPublicaciones/Model/publicacion.php`
- [Comment controller](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloComentarios/Controller/comentarioController.php): `src/ModuloComentarios/Controller/comentarioController.php`
- [Comment model](https://github.com/rodrigo-amaya/proyecto-red-social/blob/master/src/ModuloComentarios/Model/comentario.php): `src/ModuloComentarios/Model/comentario.php`

### Other components

- **Visitor or user**
