How tres7/afristay works
AfriStay is an accommodation-booking platform for Africa, with Mobile Money support documented in the README. The user-facing product spans account access, accommodation discovery, hosting, reservations, and messaging; the tree also includes favorites and profile areas. Sampled backend code confirms authentication/profile handling and a layered messaging workflow. Reservation, payment, accommodation, and favorites implementations are present in the tree but were not sampled, so their internal relationships are not inferred. The graph preserves those product areas without claiming unverified frontend-to-backend wiring.
Main entry points: MessagingService.py Messaging service · UserService.py User service · reservation Reservation pages · DjangoUserRepository.py User repository
Components 21
Web experience
- Account pages
client/src/app/(auth) - Discovery and stays
client/src/app/(main) - Host workspace
client/src/app/(main)/hote - Reservation pages
client/src/app/(main)/reservation - Profile and favorites
client/src/app/(main)/profil - Message pages
client/src/app/(main)/messages
Accounts
- Auth endpoints
server/apps/users/infrastructure/http/controllers/AuthController.py - Profile endpoint
server/apps/users/infrastructure/http/controllers/UserController.py - User service
server/apps/users/application/service/UserService.py - User repository
server/apps/users/infrastructure/persistence/DjangoUserRepository.py - User records
server/apps/users/infrastructure/persistence/models.py
Stay marketplace
- Accommodation API
server/apps/hebergements - Favorites API
server/apps/favoris
Reservations and payment
- Reservation API
server/apps/reservations - Mobile Money
Messaging
- Conversation API
server/apps/messaging/infrastructure/http/controllers/ConversationController.py - Messaging service
server/apps/messaging/application/service/MessagingService.py - Conversation and messages
server/apps/messaging/domain/entities - Messaging repositories
server/apps/messaging/infrastructure/persistence - Messaging records and outbox
server/apps/messaging/infrastructure/persistence/models.py
Other components
- Traveler / host
Connections 16
- Traveler / host → Account pages: opens account
- Traveler / host → Discovery and stays: discovers stays
- Traveler / host → Host workspace: manages listings
- Traveler / host → Reservation pages: books stays
- Traveler / host → Profile and favorites: manages profile
- Traveler / host → Message pages: uses messaging
- Auth endpoints → User service: invokes
server/apps/users/infrastructure/http/controllers/AuthController.py - Profile endpoint → User service: invokes
server/apps/users/infrastructure/http/controllers/UserController.py - User service → User repository: reads and writes
server/apps/users/application/service/UserService.py - User repository → User records: persists users
server/apps/users/infrastructure/persistence/DjangoUserRepository.py - Conversation API → Messaging service: dispatches requests
server/apps/messaging/infrastructure/http/controllers/ConversationController.py - Messaging service → Conversation and messages: creates and checks
server/apps/messaging/application/service/MessagingService.py - Messaging service → Messaging repositories: loads and saves
server/apps/messaging/application/service/MessagingService.py - Messaging repositories → Messaging records and outbox: persists messages
- Messaging service → Accommodation API: looks up stays
- Reservation pages → Mobile Money: pays with