How isac-deodanes/gennda works
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: EventoController.php Domain controllers · config.ts API integration · Calendario.vue User screens · Kernel.php HTTP middleware pipeline
Components 17
Ionic/Vue Client
- Client bootstrap
ProyectoFinal/src/main.ts - App shell
ProyectoFinal/src/App.vue - Client router
ProyectoFinal/src/router/index.ts - User screens · Login, registration, calendar, finance, and profile journeys.
ProyectoFinal/src/views/Calendario.vue - Event/category modals
ProyectoFinal/src/components/EventoModal.vue - API integration · Owns API base URL and environment selection.
ProyectoFinal/src/api/config.ts - Capacitor packaging
ProyectoFinal/capacitor.config.ts
Laravel API
- Web entry
ProyectoAPI/public/index.php - Application bootstrap
ProyectoAPI/bootstrap/app.php - HTTP middleware pipeline · Applies auth, CORS, proxy, maintenance, and request normalization middleware.
ProyectoAPI/app/Http/Kernel.php - API routes
ProyectoAPI/routes/api.php - Domain controllers · Users, categories, and events HTTP translation layer.
ProyectoAPI/app/Http/Controllers/API/EventoController.php - Sanctum auth
ProyectoAPI/config/sanctum.php
Persistence
- Eloquent domain models · Usuarios, Categoria, and Evento entities.
ProyectoAPI/app/Models/Evento.php - Schema migrations · Defines users, categories, events, and access-token tables.
ProyectoAPI/database/migrations/2025_11_03_175349_create_eventos_table.php - Application database · Connection is environment-driven.
ProyectoAPI/config/database.php - User photo storage
ProyectoAPI/storage/app/public
Connections 19
- 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