How yousef-shohber/prop-flow works
PropFlow is a NestJS property and rental management API. Its central workflow lets tenants discover units and request rentals; owners or admins review requests and manage leases, while tenants can request renewals. Owners also manage properties and units, and maintenance requests move through assignment and resolution. The graph preserves user administration, authentication, notifications, analytics, and audit logging as supporting capabilities. Relationship evidence is limited to the README and SOURCE INDEX references; unsampled runtime wiring is not asserted as verified.
Main entry points: auth.controller.ts Auth endpoints · auth.service.ts Authentication · users.service.ts User management · upload.service.ts Image uploads
Components 28
Identity and access
- Auth endpoints
src/auth/auth.controller.ts - Authentication
src/auth/auth.service.ts - Google OAuth
src/auth/google.service.ts - User endpoints
src/users/users.controller.ts - User management
src/users/users.service.ts - User records
src/users/entities/user.entity.ts
Listings and rentals
- Property endpoints
src/properties/properties.controller.ts - Property management
src/properties/properties.service.ts - Unit endpoints
src/units/units.controller.ts - Unit management
src/units/units.service.ts - Rental requests
src/rental-requests/rental-requests.controller.ts - Rental workflow
src/rental-requests/rental-requests.service.ts - Lease endpoints
src/leases/leases.controller.ts - Lease management
src/leases/leases.service.ts - Renewal requests
src/leases/lease-renewal-requests.controller.ts - Renewal workflow
src/leases/lease-renewal-requests.service.ts
Operations
- Maintenance endpoints
src/maintenance/maintenance.controller.ts - Maintenance workflow
src/maintenance/maintenance.service.ts - Notification endpoints
src/notifications/notifications.controller.ts - Notifications
src/notifications/notifications.service.ts
Platform services
- Dashboard analytics
src/analytics/analytics.service.ts - Audit logs
src/audit-logs/audit-logs.service.ts - Image uploads
src/common/uploads/upload.service.ts - Email delivery
src/common/mail/email.service.ts - PostgreSQL
- Redis
- Cloudinary
Other components
- API client
Connections 31
- API client → Auth endpoints: calls API
- API client → Property endpoints: calls API
- API client → Unit endpoints: calls API
- API client → Rental requests: calls API
- API client → Lease endpoints: calls API
- API client → Maintenance endpoints: calls API
- Auth endpoints → Authentication: delegates to
src/auth/auth.controller.ts - Auth endpoints → Google OAuth: delegates to
src/auth/auth.controller.ts - Authentication → User management: uses user lookup
src/auth/auth.service.ts - Auth endpoints → User management: uses service
src/auth/auth.controller.ts - User endpoints → User management: delegates to
src/users/users.controller.ts - User management → User records: manages
src/users/users.service.ts - Property endpoints → Property management: delegates to
src/properties/properties.controller.ts - Unit endpoints → Unit management: delegates to
src/units/units.controller.ts - Rental requests → Rental workflow: delegates to
src/rental-requests/rental-requests.controller.ts - Lease endpoints → Lease management: delegates to
src/leases/leases.controller.ts - Renewal requests → Renewal workflow: delegates to
src/leases/lease-renewal-requests.controller.ts - Maintenance endpoints → Maintenance workflow: delegates to
src/maintenance/maintenance.controller.ts - Notification endpoints → Notifications: delegates to
src/notifications/notifications.controller.ts - Property endpoints → Image uploads: uses upload constants
src/properties/properties.controller.ts - Unit endpoints → Image uploads: uses upload constants
src/units/units.controller.ts - Maintenance endpoints → Image uploads: uses upload constants
src/maintenance/maintenance.controller.ts - Authentication → Email delivery: sends OTP email
src/auth/auth.service.ts - Property management → PostgreSQL: persists listings
- Unit management → PostgreSQL: persists units
- Rental workflow → PostgreSQL: persists requests
- Lease management → PostgreSQL: persists leases
- Maintenance workflow → PostgreSQL: persists requests
- Image uploads → Cloudinary: stores images
- Authentication → Redis: stores OTPs
- Notifications → Email delivery: dispatches email