How jlmontielc/sistema-informacion-vantiopp4 works
PP4 is a personal-trainer management system whose central workflow is client assessment, AI-assisted training and nutrition proposals, medical-safety screening, and trainer approval before delivery. The Node.js modular backend serves the application and delegates specialized HITL/AI work to Flask; the product also covers client records, metabolic assessment, workout logging, reporting, and payments. The README documents the service topology and capabilities; sampled excerpts confirm selected route and call relationships, while unsampled modules are represented only at their supported paths.
Main entry points: app.js Node API · App.jsx Web application · hitl_engine.py Recommendation engine · hitl_routes.py AI service API
Components 24
User experience
- Web application
frontend/src/App.jsx - API client
frontend/src/services/api.js - Client profiles
frontend/src/pages/ClientesPage.jsx - Workout workspace
frontend/src/pages/EntrenamientoPage.jsx - Diet workspace
frontend/src/pages/DietasPage.jsx - Progress reports
frontend/src/pages/ReportesPage.jsx - Plans and payments
frontend/src/pages/PlanesPage.jsx
Client management
- Client records
backend-node/src/modules/instruidos/instruido.routes.js - Medical profiles
backend-node/src/modules/instruidos/perfil-medico.routes.js - Metabolic assessment
backend-node/src/modules/metabolismo/metabolismo.service.js - Progress reporting
backend-node/src/modules/reportes/reportes.routes.js - Subscription payments
backend-node/src/modules/pagos/pagos.routes.js
Training and nutrition
- Workout plans and logs
backend-node/src/modules/entrenamiento - Diet plans
backend-node/src/modules/dietas/dietas.routes.js
Platform services
- Node API
backend-node/src/app.js - Authentication and roles
backend-node/src/modules/auth/auth.routes.js - Redis cache
Safety and learning
- AI service API
backend-flask/api/hitl_routes.py - Recommendation engine
backend-flask/services/hitl_engine.py - Safety guardian
backend-flask/services/guardian.py - Injury rules
backend-flask/models/rules/injury_rules.py - Nutrition engine
backend-flask/services/nutricion_engine.py - Feedback and recalibration
backend-flask/services/feedback_learner.py
Other components
- Trainer or client
Connections 24
- Trainer or client → Web application: uses
- Web application → API client: requests data
frontend/src/App.jsx - API client → Node API: calls API
- Web application → Client profiles: shows clients
frontend/src/App.jsx - Web application → Workout workspace: shows training
frontend/src/App.jsx - Web application → Diet workspace: shows diets
frontend/src/App.jsx - Web application → Progress reports: shows reports
frontend/src/App.jsx - Web application → Plans and payments: shows plans
frontend/src/App.jsx - Node API → Authentication and roles: mounts routes
backend-node/src/app.js - Node API → Client records: mounts routes
backend-node/src/app.js - Node API → Metabolic assessment: mounts routes
backend-node/src/app.js - Node API → Workout plans and logs: mounts routes
backend-node/src/app.js - Node API → Diet plans: mounts routes
backend-node/src/app.js - Node API → Subscription payments: mounts routes
backend-node/src/app.js - Node API → Progress reporting: mounts routes
backend-node/src/app.js - Client records → Medical profiles: routes profiles
backend-node/src/modules/instruidos/instruido.routes.js - Diet plans → AI service API: requests AI diet
backend-node/src/modules/dietas/dietas.routes.js - AI service API → Recommendation engine: invokes engine
backend-flask/api/hitl_routes.py - Recommendation engine → Safety guardian: checks safety
backend-flask/services/hitl_engine.py - Safety guardian → Injury rules: uses rules
backend-flask/models/rules/injury_rules.py - Recommendation engine → Nutrition engine: generates nutrition
backend-flask/services/hitl_engine.py - AI service API → Feedback and recalibration: records feedback
backend-flask/api/hitl_routes.py - Recommendation engine → Feedback and recalibration: recalibrates weights
backend-flask/services/hitl_engine.py - Node API → Redis cache: uses cache