How edujrubm/sistema-nuevos-horizontes works
Sistema Nuevos Horizontes is a React/NestJS application for beneficiary care, permanent records, children, area forms, shelter operations, and documents. The principal workflow is staff entering or finding a beneficiary, creating and confirming an initial record, then using area-specific forms, evolution, shelter, and document screens to maintain the case. The graph shows the sampled routing and service calls, plus documented product areas. Several backend modules and frontend API clients are present in the tree but were not sampled, so their internal links are omitted.
Main entry points: router.tsx Route dispatch · DocumentsPage.tsx Document screens · documentos.controller.ts Document routes · carga-pdf.service.ts PDF upload
Components 26
Staff interface
- Route dispatch
frontend/src/app/router/router.tsx - Beneficiary screens
frontend/src/modules/beneficiaries/pages - Admission wizard
frontend/src/modules/admission/pages - Case forms and evolution
frontend/src/modules/persona3 - Document screens
frontend/src/modules/documentos/DocumentsPage.tsx - Shelter screens
frontend/src/modules/albergue/pages
Beneficiary records
- Beneficiary API
frontend/src/modules/beneficiaries/api/beneficiaries-api.ts - Admission API
frontend/src/modules/admission/api/admission-api.ts - Beneficiary routes
src/modules/beneficiarias/beneficiarias.controller.ts - Initial record routes
src/modules/ficha-inicial/ficha-inicial.controller.ts - Beneficiary service
src/modules/beneficiarias/beneficiarias.service.ts - Initial record service
src/modules/ficha-inicial/ficha-inicial.service.ts
Area care
- Persona3 API
frontend/src/shared/api/persona3.ts - Persona3 and evolution routes
src/modules/persona3/persona3.service.ts - Persona3 service
src/modules/persona3/persona3.service.ts - Area forms
src/modules/formularios
Shelter and documents
- Documents API
frontend/src/modules/documentos/api.ts - Shelter API
frontend/src/modules/albergue/api/albergue-api.ts - Shelter routes
src/modules/albergue/albergue.controller.ts - Shelter service
src/modules/albergue/albergue.service.ts - Document routes
src/modules/documentos/documentos.controller.ts - Document services
src/modules/documentos/documentos.service.ts - PDF upload
src/modules/documentos/carga-pdf.service.ts
API platform
- PostgreSQL
- Nest application
src/app.module.ts
Other components
- Staff user
Connections 15
- Staff user → Route dispatch: opens screens
frontend/src/app/router/router.tsx - Route dispatch → Beneficiary screens: routes to
frontend/src/app/router/router.tsx - Route dispatch → Admission wizard: routes to
frontend/src/app/router/router.tsx - Route dispatch → Case forms and evolution: routes to
frontend/src/app/router/router.tsx - Route dispatch → Document screens: routes to
frontend/src/app/router/router.tsx - Route dispatch → Shelter screens: routes to
frontend/src/app/router/router.tsx - Document screens → Documents API: uses
frontend/src/modules/documentos/DocumentsPage.tsx - Document screens → PDF upload: renders upload field
frontend/src/modules/documentos/DocumentsPage.tsx - Beneficiary routes → Beneficiary service: calls
src/modules/beneficiarias/beneficiarias.controller.ts - Initial record routes → Initial record service: calls
src/modules/ficha-inicial/ficha-inicial.controller.ts - Shelter routes → Shelter service: calls
src/modules/albergue/albergue.controller.ts - Document routes → Document services: calls
src/modules/documentos/documentos.controller.ts - Document routes → PDF upload: dispatches upload
src/modules/documentos/documentos.controller.ts - Persona3 and evolution routes → Persona3 service: handles requests
src/modules/evolucion/evolucion.controller.ts - Nest application → PostgreSQL: uses database
README.md