How jesus-colomacardoza/gestiondocumentalbo works
Project Type and Purpose
• This is a single-page application (SPA) built with React, TypeScript and Vite.
• It serves as a document and “trámite” (workflow) management front-end, interfacing with one or more back-end REST APIs, AWS S3 (for file storage) and an external RENIEC service (for identity lookup).
File-Structure Highlights
• public/ – static assets, favicons, theme styles (PrimeReact/PrimeFlex).
• src/
• App entrypoints (main.tsx, index.html, App.tsx, ThemeContext).
• assets/ – images, CSS.
• modules/ – feature folders (anexo, archivador, area, auth, documento, empresa, tramite, usuario, etc). Each module follows a pattern:
– components/ (UI pages/modals)
– hooks/ (custom React hooks, e.g. useX)
– service/ (API calls, e.g. XService.tsx)
– interfaces/ (TypeScript types)
– utils/ (constants, helpers)
• core/ – global routes, layout (Dashboard, SideBar, MenuBar).
• utils/ – shared UI components (ConfirmModal), methods.
• Config files: vite.config.ts, tsconfig.json, eslint.config.js suggest standard React+TS+Vite setup.
Key Architecture and Interaction Points
• UI Layer (React components & context)
• Service Layer (XService.tsx calling back-end endpoints via fetch/Axios)
• State Management via React Context and custom hooks
• External Integrations:
• AWS S3 (via FileAwsService)
• RENIEC lookup (via ReniecService)
• Authentication (AuthService + AuthContext) interacting with back-end auth endpoints.