# _MAP: apps/frontend/ **Última actualizaciΓ³n:** 2025-11-07 **Estado:** 🟒 En desarrollo activo **VersiΓ³n:** 2.0 --- ## πŸ“‹ PropΓ³sito Frontend SPA multi-portal de GAMILIT con 3 aplicaciones (Student, Teacher, Admin) en React + Vite + TypeScript. **Audiencia:** Desarrolladores Frontend, UX Designers, Tech Leads --- ## πŸ—‚οΈ Estructura ``` frontend/ β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ app/ # App configuration β”‚ β”‚ β”œβ”€β”€ layouts/ # Layout components β”‚ β”‚ β”œβ”€β”€ providers/ # Context providers β”‚ β”‚ └── routes/ # React Router config β”‚ β”œβ”€β”€ features/ # Features por dominio β”‚ β”‚ β”œβ”€β”€ auth/ # AutenticaciΓ³n β”‚ β”‚ └── exercises/ # 33 mecΓ‘nicas educativas β”‚ β”œβ”€β”€ pages/ # Pages/Views β”‚ β”‚ β”œβ”€β”€ auth/ # Login, Register β”‚ β”‚ └── teacher/ # Teacher portal pages β”‚ β”œβ”€β”€ components/ # Componentes de dominio β”‚ β”‚ β”œβ”€β”€ achievements/ # Achievements UI β”‚ β”‚ β”œβ”€β”€ dashboard/ # Dashboard components β”‚ β”‚ β”œβ”€β”€ feedback/ # Feedback UI β”‚ β”‚ β”œβ”€β”€ navigation/ # Navigation components β”‚ β”‚ └── teacher/ # Teacher-specific components β”‚ β”œβ”€β”€ shared/ # CΓ³digo compartido β”‚ β”‚ β”œβ”€β”€ components/ # UI components reutilizables β”‚ β”‚ β”œβ”€β”€ constants/ # Constants (API endpoints, ENUMs) β”‚ β”‚ β”œβ”€β”€ hooks/ # Custom React hooks β”‚ β”‚ β”œβ”€β”€ layouts/ # Shared layouts β”‚ β”‚ β”œβ”€β”€ schemas/ # Zod validation schemas β”‚ β”‚ β”œβ”€β”€ styles/ # Global styles β”‚ β”‚ β”œβ”€β”€ themes/ # Tailwind themes β”‚ β”‚ β”œβ”€β”€ types/ # TypeScript types (sync con backend) β”‚ β”‚ └── utils/ # Utilidades β”‚ β”œβ”€β”€ services/ # API services β”‚ β”œβ”€β”€ lib/ # Libraries β”‚ β”‚ └── api/ # Axios API client β”‚ β”œβ”€β”€ hooks/ # App-level hooks β”‚ β”œβ”€β”€ test/ # Test utilities β”‚ β”œβ”€β”€ App.tsx # App principal β”‚ └── main.tsx # Entry point β”œβ”€β”€ public/ # Static assets β”œβ”€β”€ dist/ # Build output β”œβ”€β”€ package.json β”œβ”€β”€ vite.config.ts β”œβ”€β”€ tsconfig.json β”œβ”€β”€ tailwind.config.js └── README.md ``` --- ## πŸ“Š MΓ©tricas | MΓ©trica | Valor | |---------|-------| | **Archivos TS/TSX** | 142 | | **LOC** | ~85,000 | | **Componentes** | 180+ | | **MecΓ‘nicas educativas** | 33 | | **PΓ‘ginas** | 40+ | | **Tests** | 15 (objetivo: 60) | | **Coverage** | ~13% (objetivo: 70%) | --- ## 🎯 Features Principales ### Student Portal - Dashboard gamificado - 33 mecΓ‘nicas educativas - Progress tracking - ML Coins & Achievements ### Teacher Portal - Classroom management - Student progress monitoring - Grading interface ### Admin Portal (planeado) - User management - System configuration --- ## 🚨 Issues P0 - **Test coverage bajo:** 13% vs 70% - **Sin PWA configurado** (ready pero no activado) - **Accesibilidad WCAG:** Parcialmente implementada --- ## πŸš€ Scripts ```bash npm run dev # Vite dev server (port 5173) npm run build # Build production npm run preview # Preview build npm test # Vitest npm run lint # ESLint npm run format # Prettier ``` --- ## πŸ“ Path Aliases ```json { "@/*": ["src/*"], "@shared/*": ["src/shared/*"], "@components/*": ["src/shared/components/*"], "@hooks/*": ["src/shared/hooks/*"], "@utils/*": ["src/shared/utils/*"], "@types/*": ["src/shared/types/*"] } ``` --- ## πŸ”— Interdependencias - **Backend (apps/backend/):** Consume API REST + WebSocket - **DevOps (apps/devops/):** ENUMs sincronizados automΓ‘ticamente - **Docs:** [docs/03-desarrollo/frontend/](../../docs/03-desarrollo/frontend/) --- **Generado:** 2025-11-07 **MΓ©todo:** Sistema SIMCO - Fase 3 **VersiΓ³n:** 1.0.0