How joaquin-pino/fingeso works
Purpose and Runtime Topology
PGT is a thesis-student management platform: professors and tesistas authenticate, view/manage thesis records, and submit/view progress deliveries. It is a split application:
• Vue 3/Vite SPA on port 5173: front/src/main.js, front/src/App.vue
• Spring Boot Java 21 REST backend on port 8080: src/main/java/grupo3/fingeso/FingesoApplication.java
• PostgreSQL persistence on port 5432: src/main/resources/application.properties
In development, Vite proxies /api/* to the backend: front/vite.config.js.
Frontend Entry, Navigation, and Session
The SPA boots from front/src/main.js, renders the application shell in front/src/App.vue, and selects pages through front/src/router/index.js. Principal screens cover login/registration and thesis list/detail workflows:
• front/src/views/LoginView/LoginView.vue
• front/src/views/TesisListView/TesisListView.vue
• front/src/views/TesisDetailView/TesisDetailView.vue
front/src/composables/useAuth.js owns client authentication state; front/src/composables/useIdleTimer.js indicates session-expiration behavior. Route-level authorization directs unauthorized users to front/src/views/ForbiddenView/ForbiddenView.vue.
Frontend API Boundary and Domain UI
Service modules form the browser-to-REST boundary, centralizing HTTP, JWT handling, and domain calls:
• front/src/services/http.js
• front/src/services/authService.js
• front/src/services/tesisService.js
• front/src/services/entregaService.js
Thesis detail composition includes progress-delivery display and upload confirmation flows:
• front/src/components/EntregaList/EntregaList.vue
• front/src/components/modals/EntregaUploadModal/EntregaUploadModal.vue
• front/src/utils/fileValidation.js
REST, Security, and Authentication
HTTP controllers expose the backend’s primary API surface:
• src/main/java/grupo3/fingeso/controller/AuthController.java
• src/main/java/grupo3/fingeso/controller/TesisController.java
• src/main/java/grupo3/fingeso/controller/EntregaAvanceController.java
Authentication issues JWT-based sessions through AuthService; requests are authenticated by a JWT filter and authorization rules in Spring Security:
• src/main/java/grupo3/fingeso/service/AuthService.java
• src/main/java/grupo3/fingeso/security/JwtAuthenticationFilter.java
• src/main/java/grupo3/fingeso/config/SecurityConfig.java
The key trust boundary is browser JWT → /api request → Spring Security principal/role checks. Both PROFESOR and TESISTA are intended to access thesis endpoints.
Thesis and Progress-Delivery Domain Flow
TesisService implements thesis lifecycle and assignment-oriented behavior; EntregaAvanceService handles advance submissions. State and audit history are first-class domain concepts:
• src/main/java/grupo3/fingeso/service/TesisService.java
• src/main/java/grupo3/fingeso/service/EntregaAvanceService.java
• src/main/java/grupo3/fingeso/service/HistorialCambioService.java
Core persisted entities model users by professor/tesista role, thesis status, deliveries, and changes:
• src/main/java/grupo3/fingeso/model/Tesis.java
• src/main/java/grupo3/fingeso/model/EntregaAvance.java
• src/main/java/grupo3/fingeso/model/HistorialCambio.java
A delivery submission can create a historical change and trigger notification behavior.
Persistence, Seeding, and External Notification
Spring Data repositories isolate database access from services:
• src/main/java/grupo3/fingeso/repository/TesisRepository.java
• src/main/java/grupo3/fingeso/repository/EntregaAvanceRepository.java
• src/main/java/grupo3/fingeso/repository/HistorialCambioRepository.java
PostgreSQL is the production/local persistence dependency. DataSeeder initializes sample users and theses for an empty database:
• src/main/java/grupo3/fingeso/config/DataSeeder.java
NotificacionService provides optional email notification on progress uploads; absent mail environment credentials cause logging rather than failure:
• src/main/java/grupo3/fingeso/service/NotificacionService.java
Main entry points: index.js Routes and guards · TesisController.java REST controllers · EntregaAvanceService.java Progress delivery service · http.js HTTP and domain services
Components 21
Vue SPA
- SPA bootstrap
front/src/main.js - Application shell
front/src/App.vue - Routes and guards · Selects screens and redirects unauthorized users.
front/src/router/index.js - Auth session
front/src/composables/useAuth.js - Idle expiration
front/src/composables/useIdleTimer.js - Thesis workflows · List and detail screens for thesis management.
front/src/views/TesisDetailView/TesisDetailView.vue - Login and registration
front/src/views/LoginView/LoginView.vue - Forbidden screen
front/src/views/ForbiddenView/ForbiddenView.vue - Delivery upload and list · Includes upload confirmation and client file validation.
front/src/components/EntregaList/EntregaList.vue - HTTP and domain services · Centralizes HTTP, JWT handling, and auth/thesis/delivery calls.
front/src/services/http.js
Spring Boot API
- Spring Boot application
src/main/java/grupo3/fingeso/FingesoApplication.java - JWT security · Authenticates JWT requests and enforces role access.
src/main/java/grupo3/fingeso/security/JwtAuthenticationFilter.java - REST controllers · Auth, thesis, and progress-delivery endpoints under /api.
src/main/java/grupo3/fingeso/controller/TesisController.java - Authentication service · Issues JWT-based sessions.
src/main/java/grupo3/fingeso/service/AuthService.java - Thesis lifecycle service · Manages thesis lifecycle and assignments.
src/main/java/grupo3/fingeso/service/TesisService.java - Progress delivery service · Processes submissions and triggers audit/notification behavior.
src/main/java/grupo3/fingeso/service/EntregaAvanceService.java - Change history service
src/main/java/grupo3/fingeso/service/HistorialCambioService.java - Email notifications · Logs instead of failing when mail credentials are absent.
src/main/java/grupo3/fingeso/service/NotificacionService.java
Persistence
- Spring Data repositories · Repository boundary for theses, deliveries, and history.
src/main/java/grupo3/fingeso/repository/TesisRepository.java - PostgreSQL · Production and local persistence on port 5432.
src/main/resources/application.properties - Sample data seeder · Seeds users and theses into an empty database.
src/main/java/grupo3/fingeso/config/DataSeeder.java
Connections 24
- SPA bootstrap → Application shell: mounts
- Application shell → Routes and guards: renders routes
- Routes and guards → Auth session: uses session
- Routes and guards → Idle expiration: enforces expiry
- Routes and guards → Login and registration: selects
- Routes and guards → Thesis workflows: selects
- Routes and guards → Forbidden screen: redirects
- Thesis workflows → Delivery upload and list: composes
- Login and registration → HTTP and domain services: auth calls
- Thesis workflows → HTTP and domain services: thesis calls
- Delivery upload and list → HTTP and domain services: upload calls
- HTTP and domain services → REST controllers: JWT /api requests · Vite proxies requests to the backend in development.
- Spring Boot application → JWT security: configures
- JWT security → REST controllers: authenticated principal · Checks professor and tesista roles before API access.
- REST controllers → Authentication service: authentication
- REST controllers → Thesis lifecycle service: thesis operations
- REST controllers → Progress delivery service: delivery operations
- Thesis lifecycle service → Spring Data repositories: persists theses
- Progress delivery service → Spring Data repositories: persists deliveries
- Progress delivery service → Change history service: records change
- Change history service → Spring Data repositories: persists history
- Progress delivery service → Email notifications: notifies
- Spring Data repositories → PostgreSQL: reads and writes
- Sample data seeder → PostgreSQL: initializes empty database