How trainin-entrenamientos/trainin works
Project type and purpose
• This is an Angular single-page application (SPA) front-end (Trainin).
• Purpose: Provide a user interface for fitness training—user authentication, plan creation, exercise execution (with posture-correction), progress tracking, payment (Mercado Pago), notifications, and music integration (Spotify).
File structure
• Top-level configuration: angular.json, tsconfig*, package.json, cypress/ (e2e), karma.conf.js (unit tests), public/ (static assets), environments/ (runtime flags), vercel.json (deployment).
• src/app/
– app.module.ts + app-routing.module.ts (root module & routes)
– compartido/ (SharedModule: reusable UI components, pipes, utilities)
– core/ (CoreModule: services, models/DTOs, guards, HTTP interceptors, token utils)
– vistas/ (feature pages grouped by route: login, registro, crear-plan, corrección-postura, ejercicio-diario, perfil, planes, historial, etc.)
• src/firebase-messaging-sw.js (service worker for push notifications)
• cypress.config.ts and tests under cypress/ ensure end-to-end coverage.
README
• Minimal: “Proyecto Trainin – Frontend” confirms front-end focus.