How artreyes-ucb/arreglaloya-pollos works
Arréglalo Ya is a service marketplace: customers publish service requests, workers discover them and arrange work, and the parties manage payment and follow-up. The Angular client provides role-aware screens; the NestJS API handles authentication and domain operations. The source index and excerpts establish several controller-to-service calls, but do not expose most service internals or the frontend’s API wiring, so those relationships are omitted or shown as unverified.
Main entry points: app.routes.ts Role-aware routes · solicitud-servicio.entity.ts Marketplace records · auth.service.ts Authentication and recovery · requests.service.ts Service requests
Components 21
Web client
- Role-aware routes
frontend/src/app/app.routes.ts - Sign-in and registration
frontend/src/app/pages/login/login.component.ts - Auth client
frontend/src/app/core/services/auth.service.ts - Request screens
frontend/src/app/pages/client-requests/client-requests.component.ts - Worker request search
frontend/src/app/pages/worker-requests/worker-requests.component.ts - Worker availability and agenda
frontend/src/app/pages/worker-agenda/worker-agenda.component.ts - Payment screens
frontend/src/app/pages/payments/payments.component.ts
Identity and access
- Auth endpoints
backend/src/auth/auth.controller.ts - Authentication and recovery
backend/src/auth/auth.service.ts - Token issuance
backend/src/auth/token.service.ts - User and role management
backend/src/users/users.service.ts - JWT and role guards
backend/src/common/guards/roles.guard.ts
Marketplace operations
- Service requests
backend/src/requests/requests.service.ts - Worker profiles and scheduling
backend/src/workers/workers.service.ts - Notifications
backend/src/notifications/notifications.service.ts - Administration
backend/src/superadmin/superadmin.service.ts
Service and payment lifecycle
- Payments and service outcomes
backend/src/payments/payments.service.ts - Marketplace records
backend/src/entities/solicitud-servicio.entity.ts - Audit trail
backend/src/audit/audit.service.ts
Other components
- Customer or worker
- NestJS API
backend/src/main.ts
Connections 22
- Customer or worker → Role-aware routes: uses
frontend/src/app/app.routes.ts - Role-aware routes → Sign-in and registration: routes to
frontend/src/app/app.routes.ts - Role-aware routes → Request screens: routes to
frontend/src/app/app.routes.ts - Role-aware routes → Worker request search: routes to
frontend/src/app/app.routes.ts - Role-aware routes → Worker availability and agenda: routes to
frontend/src/app/app.routes.ts - Role-aware routes → Payment screens: routes to
frontend/src/app/app.routes.ts - Sign-in and registration → Auth client: uses
- Request screens → Service requests: uses API
- Worker request search → Service requests: uses API
- Worker availability and agenda → Worker profiles and scheduling: uses API
- Payment screens → Payments and service outcomes: uses API
- NestJS API → Auth endpoints: serves
- Auth endpoints → Authentication and recovery: delegates to
backend/src/auth/auth.controller.ts - Authentication and recovery → Token issuance: issues token
backend/src/auth/auth.service.ts - Authentication and recovery → Audit trail: records events
backend/src/auth/auth.service.ts - Authentication and recovery → Marketplace records: persists accounts
- JWT and role guards → Marketplace records: checks account
- Service requests → Marketplace records: manages requests
backend/src/requests/requests.service.ts - Worker profiles and scheduling → Marketplace records: manages schedules
- Payments and service outcomes → Marketplace records: manages payments
backend/src/payments/payments.service.ts - Administration → Marketplace records: manages accounts
- Notifications → Marketplace records: stores notices