How armreyes-ucb/arreglalo-ya works
Arréglalo Ya is a two-sided services marketplace: customers publish and track jobs, workers discover jobs and submit offers, and the platform supports payments, verification, reputation, supervision, and administration. The main journey runs from role-based frontend routes through API services to backend controllers and domain services. Sampled source confirms key calls for authentication, job requests, and worker search; other major capabilities are visible in the product tree but their internal calls were not sampled, so those relationships are not asserted.
Main entry points: api.ts API endpoint config · app.routes.ts Role-based routes · solicitudes.controller.ts Request endpoints · trabajadores.controller.ts Worker endpoints
Components 27
Web client
- Role-based routes
frontend/src/app/app.routes.ts - Auth session
frontend/src/app/core/auth.service.ts - API endpoint config
frontend/src/app/core/api.ts - Shared UI models
frontend/src/app/core/models.ts - Request workflows
frontend/src/app/features/cliente/detalle-solicitud.ts - Job tracking
frontend/src/app/features/seguimiento/seguimiento.ts - Worker workflows
frontend/src/app/features/trabajador/trabajos.ts - Admin and oversight
frontend/src/app/features/admin/panel.ts
Identity and access
- Auth endpoints
backend/src/auth/auth.controller.ts - Auth service
backend/src/auth/auth.service.ts - SMS verification
backend/src/auth/sms-verification.service.ts - JWT guard
backend/src/auth/guards/jwt-auth.guard.ts - Role authorization
backend/src/auth/guards/roles.guard.ts
Marketplace operations
- Request endpoints
backend/src/solicitudes/solicitudes.controller.ts - Request and offers
backend/src/solicitudes/solicitudes.service.ts - Worker endpoints
backend/src/trabajadores/trabajadores.controller.ts - Worker matching
backend/src/trabajadores/trabajadores.service.ts - Service zones
backend/src/zonas/zonas.service.ts
Trust and payments
- Payments and refunds
backend/src/pagos/pagos.service.ts - Ratings and claims
backend/src/reputacion/reclamos.service.ts - Worker verification
backend/src/verificacion/verificacion.service.ts
Platform operations
- Admin management
backend/src/admin/reportes.service.ts - Platform configuration
backend/src/configuracion/configuracion.service.ts - Marketplace records
backend/src/entities/solicitud.entity.ts - Image storage
backend/src/uploads/image-storage.service.ts - Document storage
backend/src/verificacion/document-storage.service.ts
Other components
- Customer and worker
Connections 31
- Customer and worker → Role-based routes: uses
frontend/src/app/app.routes.ts - Role-based routes → Request workflows: routes to
frontend/src/app/app.routes.ts - Role-based routes → Job tracking: routes to
frontend/src/app/app.routes.ts - Role-based routes → Worker workflows: routes to
frontend/src/app/app.routes.ts - Role-based routes → Admin and oversight: routes to
frontend/src/app/app.routes.ts - Auth session → API endpoint config: sends HTTP
frontend/src/app/core/auth.service.ts - Request workflows → API endpoint config: uses API
- Job tracking → API endpoint config: uses API
- Worker workflows → API endpoint config: uses API
- Admin and oversight → API endpoint config: uses API
- Auth session → Shared UI models: uses types
frontend/src/app/core/auth.service.ts - Request endpoints → Request and offers: delegates to
backend/src/solicitudes/solicitudes.controller.ts - Worker endpoints → Worker matching: delegates to
backend/src/trabajadores/trabajadores.controller.ts - Auth endpoints → Auth service: delegates to
- Auth endpoints → SMS verification: uses verification
- Request endpoints → JWT guard: guards routes
backend/src/solicitudes/solicitudes.controller.ts - Request endpoints → Role authorization: guards routes
backend/src/solicitudes/solicitudes.controller.ts - Worker endpoints → JWT guard: guards routes
backend/src/trabajadores/trabajadores.controller.ts - Worker endpoints → Role authorization: guards routes
backend/src/trabajadores/trabajadores.controller.ts - API endpoint config → Auth endpoints: calls API
- API endpoint config → Request endpoints: calls API
- API endpoint config → Worker endpoints: calls API
- Request and offers → Payments and refunds: coordinates payment
- Request and offers → Marketplace records: persists requests
- Worker matching → Service zones: matches by zone
- Payments and refunds → Marketplace records: stores payment state
- Ratings and claims → Marketplace records: stores reputation
backend/src/reputacion/reclamos.service.ts - Worker verification → Document storage: stores documents
- Admin management → Platform configuration: manages settings
- Admin management → Marketplace records: reports platform data
- Image storage → Customer and worker: optional upload