How karimyasse/morafeq works
This is a role-based housing marketplace for hosts, expatriate renters, and administrators. Renters discover listings, inspect details, and can proceed to bookings; hosts manage listings and booking requests; both sides have messaging, profiles, and reviews, while administrators moderate listings and disputes. The graph also preserves documented AI housing assistance and location/roommate features. Source excerpts establish several controller-to-service paths, but most feature internals and frontend API wiring were not sampled, so those connections are omitted rather than inferred.
Main entry points: App.jsx Role-based application · prisma.service.ts Relational data store · auth.service.ts Authentication · listings.service.ts Listing management and search
Components 22
Application entry
- Role-based application
Frontend/src/App.jsx
Identity and profiles
- Authentication
Backend/src/auth/auth.service.ts - User profiles
Backend/src/users/users.service.ts - Account verification
Backend/src/verification/verification.service.ts
Housing marketplace
- Listing discovery and detail
Frontend/src/features/expatriate - Listing management and search
Backend/src/listings/listings.service.ts - Search queries
Backend/src/search/search.service.ts - Bookings and requests
Backend/src/bookings/bookings.service.ts - Payments
Backend/src/payments/payments.service.ts - Review experience
Frontend/src/features/reviews - Review management
Backend/src/reviews/reviews.service.ts - Saved listings
Backend/src/favorites/favorites.service.ts - Location services
Backend/src/locations/locations.service.ts - Location insights
Backend/src/location-insights/location-insights.service.ts - Roommate matching
Backend/src/roommate-matching/roommate-matching.service.ts
Messaging and assistance
- Live messaging
Backend/src/chat/chat.gateway.ts - Dispute conversations
Backend/src/dispute-chat/dispute-chat.service.ts - AI housing assistant
Backend/src/ai/ai.service.ts
Administration
- Moderation and dispute review
Backend/src/admin/admin.service.ts - Relational data store
Backend/src/prisma/prisma.service.ts
Other components
- Renters and hosts
- Administrators
Connections 17
- Renters and hosts → Role-based application: use
- Administrators → Role-based application: use
- Role-based application → Authentication: authenticate
- Role-based application → Listing discovery and detail: route to
Frontend/src/App.jsx - Role-based application → Review experience: route to
Frontend/src/App.jsx - Authentication → Relational data store: read and write
Backend/src/auth/auth.service.ts - Authentication → Renters and hosts: email codes
Backend/src/auth/auth.service.ts - Listing discovery and detail → Listing management and search: request listings
- Listing management and search → Search queries: delegate search
- Listing management and search → Review management: get listing reviews
Backend/src/listings/listings.controller.ts - Bookings and requests → Payments: payment handling
- Review experience → Review management: call review API
Frontend/src/features/reviews/services/reviewsApi.js - Review management → Relational data store: read and write
Backend/src/reviews/reviews.service.ts - Moderation and dispute review → Relational data store: read and write
Backend/src/admin/admin.service.ts - Moderation and dispute review → Dispute conversations: manage conversations
- AI housing assistant → Relational data store: read sessions
Backend/src/ai/ai.controller.ts - AI housing assistant → Relational data store: index listings
Backend/src/ai/ai.controller.ts