# isac-deodanes/gennda architecture

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

- Interactive diagram: https://gitdiagram.com/isac-deodanes/gennda
- Repository: https://github.com/isac-deodanes/gennda

## Overview

#### Purpose and Topology
This repository contains a two-part personal event/calendar application: a Laravel REST API in `ProyectoAPI` and an Ionic/Vue client in `ProyectoFinal`. The API manages users, categories, and events; the client presents calendar, finance, profile, support, authentication, and policy screens.

#### Backend Entry and HTTP Pipeline
Laravel starts through `ProyectoAPI/public/index.php` for web requests and `ProyectoAPI/artisan` for CLI/maintenance commands. Application bootstrapping and HTTP middleware orchestration are defined in `ProyectoAPI/bootstrap/app.php` and `ProyectoAPI/app/Http/Kernel.php`. Requests traverse Laravel’s authentication, CORS, proxy, maintenance, and request-normalization middleware before reaching API routes.

#### API Surface and Domain Controllers
The API boundary is declared in `ProyectoAPI/routes/api.php`; browser-oriented routes remain separate in `ProyectoAPI/routes/web.php`. Domain operations are concentrated in:
- `ProyectoAPI/app/Http/Controllers/API/UsuariosController.php`
- `ProyectoAPI/app/Http/Controllers/API/CategoriaController.php`
- `ProyectoAPI/app/Http/Controllers/API/EventoController.php`

These controllers form the main translation layer between HTTP payloads/responses and Eloquent persistence. Authentication capability is indicated by Sanctum configuration and the personal-access-token migration: `ProyectoAPI/config/sanctum.php` and `ProyectoAPI/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php`.

#### Persistence Model
Eloquent models represent the core data entities:
- `ProyectoAPI/app/Models/Usuarios.php`
- `ProyectoAPI/app/Models/Categoria.php`
- `ProyectoAPI/app/Models/Evento.php`

Schema ownership is captured by the corresponding migrations, including `ProyectoAPI/database/migrations/2025_10_30_144558_create_usuarios_table.php`, `ProyectoAPI/database/migrations/2025_11_03_175149_create_categorias_table.php`, and `ProyectoAPI/database/migrations/2025_11_03_175349_create_eventos_table.php`. Database connectivity is environment-driven through `ProyectoAPI/config/database.php`; user photo storage is suggested by the photo-path migration and `ProyectoAPI/storage/app/public`.

#### Client Runtime and Composition
The frontend is a TypeScript Vue application packaged as Ionic/Capacitor, with its runtime bootstrapped by `ProyectoFinal/src/main.ts` and root shell in `ProyectoFinal/src/App.vue`. Capacitor configuration (`ProyectoFinal/capacitor.config.ts`) makes the client deployable as a mobile hybrid application as well as a web build.

#### Client Navigation and Feature Screens
Client-side navigation is centrally defined in `ProyectoFinal/src/router/index.ts`. Main user journeys map to views including `ProyectoFinal/src/views/Login.vue`, `ProyectoFinal/src/views/Registro.vue`, `ProyectoFinal/src/views/Calendario.vue`, `ProyectoFinal/src/views/Finanzas.vue`, and `ProyectoFinal/src/views/Perfil.vue`. Calendar/category and event editing are isolated into reusable modal components: `ProyectoFinal/src/components/CategoriaModal.vue` and `ProyectoFinal/src/components/EventoModal.vue`.

#### Frontend-to-Backend Boundary
`ProyectoFinal/src/api/config.ts` is the explicit API integration boundary and should own backend base-URL/environment selection. The expected control flow is: user interaction in routed views/modals → HTTP calls configured at this boundary → Laravel API routes/controllers → Eloquent models/database → JSON response back to Vue state/UI. Static seasonal assets are client-owned under `ProyectoFinal/public`, while persistent uploads belong to Laravel storage.

Main entry points: [`ProyectoAPI/app/Http/Controllers/API/EventoController.php`](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/app/Http/Controllers/API/EventoController.php) (Domain controllers), [`ProyectoFinal/src/api/config.ts`](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/api/config.ts) (API integration), [`ProyectoFinal/src/views/Calendario.vue`](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/views/Calendario.vue) (User screens), [`ProyectoAPI/app/Http/Kernel.php`](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/app/Http/Kernel.php) (HTTP middleware pipeline)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Ionic/Vue Client"]
  node_client_boot["Client bootstrap<br/>Vue entry<br/>[main.ts]"]
  node_client_shell["App shell<br/>Vue root<br/>[App.vue]"]
  node_router["Client router<br/>navigation<br/>[index.ts]"]
  node_screens["User screens<br/>Vue views<br/>[Calendario.vue]"]
  node_modals["Event/category modals<br/>Vue components<br/>[EventoModal.vue]"]
  node_api_config{{"API integration<br/>HTTP config<br/>[config.ts]"}}
  node_capacitor["Capacitor packaging<br/>mobile runtime"]
end

subgraph group_api["Laravel API"]
  node_web_entry["Web entry<br/>Laravel entry<br/>[index.php]"]
  node_bootstrap["Application bootstrap<br/>Laravel bootstrap<br/>[app.php]"]
  node_http_kernel["HTTP middleware pipeline<br/>Laravel kernel<br/>[Kernel.php]"]
  node_api_routes{{"API routes<br/>REST boundary<br/>[api.php]"}}
  node_controllers["Domain controllers<br/>API controllers"]
  node_sanctum["Sanctum auth<br/>token authentication<br/>[sanctum.php]"]
end

subgraph group_data["Persistence"]
  node_models["Eloquent domain models<br/>ORM models<br/>[Evento.php]"]
  node_schema["Schema migrations<br/>database schema"]
  node_database[("Application database<br/>relational database<br/>[database.php]")]
  node_uploads["User photo storage<br/>persistent files"]
end

node_client_boot -->|"mounts"| node_client_shell
node_client_shell -->|"hosts"| node_router
node_router -->|"renders routes"| node_screens
node_screens -->|"opens editors"| node_modals
node_screens -->|"requests data"| node_api_config
node_modals -->|"submits changes"| node_api_config
node_capacitor -->|"packages runtime"| node_client_boot
node_api_config -->|"REST requests"| node_web_entry
node_web_entry -->|"boots"| node_bootstrap
node_bootstrap -->|"configures"| node_http_kernel
node_http_kernel -->|"dispatches"| node_api_routes
node_api_routes -->|"maps endpoints"| node_controllers
node_http_kernel -->|"authenticates"| node_sanctum
node_controllers -->|"reads and writes"| node_models
node_sanctum -->|"validates tokens"| node_database
node_models -->|"persists"| node_database
node_schema -->|"defines"| node_database
node_controllers -->|"stores photos"| node_uploads
node_controllers -.->|"JSON responses"| node_api_config

click node_client_boot "https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/main.ts"
click node_client_shell "https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/App.vue"
click node_router "https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/router/index.ts"
click node_screens "https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/views/Calendario.vue"
click node_modals "https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/components/EventoModal.vue"
click node_api_config "https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/api/config.ts"
click node_capacitor "https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/capacitor.config.ts"
click node_web_entry "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/public/index.php"
click node_bootstrap "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/bootstrap/app.php"
click node_http_kernel "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/app/Http/Kernel.php"
click node_api_routes "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/routes/api.php"
click node_controllers "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/app/Http/Controllers/API/EventoController.php"
click node_sanctum "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/config/sanctum.php"
click node_models "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/app/Models/Evento.php"
click node_schema "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/database/migrations/2025_11_03_175349_create_eventos_table.php"
click node_database "https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/config/database.php"
click node_uploads "https://github.com/isac-deodanes/gennda/tree/main/ProyectoAPI/storage/app/public"

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_client_boot,node_client_shell,node_router,node_screens,node_modals,node_api_config,node_capacitor toneBlue
class node_web_entry,node_bootstrap,node_http_kernel,node_api_routes,node_controllers,node_sanctum toneAmber
class node_models,node_schema,node_database,node_uploads toneMint
```

## Components

### Ionic/Vue Client

- [Client bootstrap](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/main.ts): Vue entry · `ProyectoFinal/src/main.ts`
- [App shell](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/App.vue): Vue root · `ProyectoFinal/src/App.vue`
- [Client router](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/router/index.ts): navigation · `ProyectoFinal/src/router/index.ts`
- [User screens](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/views/Calendario.vue): Vue views · Login, registration, calendar, finance, and profile journeys. · `ProyectoFinal/src/views/Calendario.vue`
- [Event/category modals](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/components/EventoModal.vue): Vue components · `ProyectoFinal/src/components/EventoModal.vue`
- [API integration](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/src/api/config.ts): HTTP config · Owns API base URL and environment selection. · `ProyectoFinal/src/api/config.ts`
- [Capacitor packaging](https://github.com/isac-deodanes/gennda/blob/main/ProyectoFinal/capacitor.config.ts): mobile runtime · `ProyectoFinal/capacitor.config.ts`

### Laravel API

- [Web entry](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/public/index.php): Laravel entry · `ProyectoAPI/public/index.php`
- [Application bootstrap](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/bootstrap/app.php): Laravel bootstrap · `ProyectoAPI/bootstrap/app.php`
- [HTTP middleware pipeline](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/app/Http/Kernel.php): Laravel kernel · Applies auth, CORS, proxy, maintenance, and request normalization middleware. · `ProyectoAPI/app/Http/Kernel.php`
- [API routes](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/routes/api.php): REST boundary · `ProyectoAPI/routes/api.php`
- [Domain controllers](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/app/Http/Controllers/API/EventoController.php): API controllers · Users, categories, and events HTTP translation layer. · `ProyectoAPI/app/Http/Controllers/API/EventoController.php`
- [Sanctum auth](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/config/sanctum.php): token authentication · `ProyectoAPI/config/sanctum.php`

### Persistence

- [Eloquent domain models](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/app/Models/Evento.php): ORM models · Usuarios, Categoria, and Evento entities. · `ProyectoAPI/app/Models/Evento.php`
- [Schema migrations](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/database/migrations/2025_11_03_175349_create_eventos_table.php): database schema · Defines users, categories, events, and access-token tables. · `ProyectoAPI/database/migrations/2025_11_03_175349_create_eventos_table.php`
- [Application database](https://github.com/isac-deodanes/gennda/blob/main/ProyectoAPI/config/database.php): relational database · Connection is environment-driven. · `ProyectoAPI/config/database.php`
- [User photo storage](https://github.com/isac-deodanes/gennda/tree/main/ProyectoAPI/storage/app/public): persistent files · `ProyectoAPI/storage/app/public`

## Connections

- Client bootstrap → App shell: mounts
- App shell → Client router: hosts
- Client router → User screens: renders routes
- User screens → Event/category modals: opens editors
- User screens → API integration: requests data
- Event/category modals → API integration: submits changes
- Capacitor packaging → Client bootstrap: packages runtime
- API integration → Web entry: REST requests
- Web entry → Application bootstrap: boots
- Application bootstrap → HTTP middleware pipeline: configures
- HTTP middleware pipeline → API routes: dispatches
- API routes → Domain controllers: maps endpoints
- HTTP middleware pipeline → Sanctum auth: authenticates
- Domain controllers → Eloquent domain models: reads and writes
- Sanctum auth → Application database: validates tokens
- Eloquent domain models → Application database: persists
- Schema migrations → Application database: defines
- Domain controllers → User photo storage: stores photos
- Domain controllers → API integration: JSON responses
