How lakshaykarad/360ghar-backend works
360 Ghar is a FastAPI backend for a shared real-estate marketplace, short-stay bookings, and property management. The primary user journey is property search and discovery, followed by swipes or recommendations and visit coordination; the backend also supports booking and landlord workflows. The graph preserves those documented product branches and the MCP tool surface. Edges are limited to README statements and source-index references; many endpoint-to-service calls cannot be verified from the supplied excerpts.
Main entry points: api.py API Router · search_orchestration.py Property Search · properties.py Property Records · server.py User MCP Tools
Components 22
Marketplace
- Property Search
app/services/property/search_orchestration.py - Property Endpoints
app/api/api_v1/endpoints/properties.py - Property Records
app/models/properties.py - Property Search Schema
app/schemas/property.py - Property Swipes
app/api/api_v1/endpoints/swipes.py - Visit Scheduling
app/api/api_v1/endpoints/visits.py - Agent Management
app/api/api_v1/endpoints/agents.py
Short Stays
- Booking Endpoints
app/api/api_v1/endpoints/bookings.py - Booking Records
app/models/bookings.py - Payments
app/api/api_v1/endpoints/payments.py
Property Management
- Tenant Management
app/api/api_v1/endpoints/pm_tenants.py - Lease Management
app/api/api_v1/endpoints/pm_leases.py - Rent Collection
app/api/api_v1/endpoints/pm_rent.py - Maintenance Requests
app/api/api_v1/endpoints/pm_maintenance.py - Document Vault
app/api/api_v1/endpoints/pm_documents.py - Financial Reports
app/api/api_v1/endpoints/pm_reports.py
API and Platform
- API Router
app/api/api_v1/api.py - Authentication
app/core/auth.py - PostgreSQL / PostGIS
app/core/database.py - User MCP Tools
app/mcp/user/server.py - MCP Apps SDK
app/mcp/apps_sdk.py
Other components
- Platform User
Connections 21
- Platform User → API Router: uses API
README.md - API Router → Property Endpoints: routes to
app/api/api_v1/api.py - Platform User → Property Search: searches listings
README.md - Platform User → Property Swipes: swipes listings
README.md - Platform User → Visit Scheduling: schedules visits
README.md - Platform User → Booking Endpoints: books stays
README.md - Platform User → Tenant Management: manages rentals
README.md - Platform User → Lease Management: tracks leases
README.md - Platform User → Rent Collection: collects rent
README.md - Platform User → Maintenance Requests: requests upkeep
README.md - Platform User → Document Vault: stores documents
README.md - Platform User → Financial Reports: views finances
README.md - API Router → Agent Management: routes to
app/api/api_v1/api.py - API Router → Booking Endpoints: routes to
app/api/api_v1/api.py - Property Search → Property Search Schema: builds filters
app/services/property/search_orchestration.py - Property Search → Property Records: queries listings
- Property Records → PostgreSQL / PostGIS: persists in
app/models/properties.py - Booking Records → PostgreSQL / PostGIS: persists in
- API Router → Authentication: authenticates requests
- Platform User → User MCP Tools: uses MCP tools
- User MCP Tools → MCP Apps SDK: registers tools
app/mcp/user/server.py