How realshare-tech/realshare works
RealShare appears to be a real-estate marketplace with an Expo mobile client and a Next.js admin/API application. Users browse services and properties, submit listings, and use agent and conversation features; administrators manage properties, agents, and operational workflows. The excerpts confirm selected API, persistence, and client relationships. The README is a template, and many product areas are unsampled, so uncertain relationships are omitted.
Main entry points: prisma.ts Database client · properties/route.ts Property listings · [id]/route.ts Property detail · conversations/route.ts Conversations
Components 20
Mobile experience
- Mobile app
android-app/src/app/(tabs)/index.tsx - Service discovery
android-app/src/components/home/ServicesStrip.tsx - Section header
android-app/src/components/ui/SectionHeader.tsx - Agent console
android-app/src/components/agent/AgentClientsScreen.tsx - Client storage
android-app/src/lib/storage.ts
Marketplace APIs
- Property listings
admin-dashboard/src/app/api/properties/route.ts - Property detail
admin-dashboard/src/app/api/properties/[id]/route.ts - Services catalog
admin-dashboard/src/app/api/services/catalog/route.ts - Agent management
admin-dashboard/src/app/api/agents/route.ts - Agent dashboard API
admin-dashboard/src/app/api/agents/dashboard/route.ts - Conversations
admin-dashboard/src/app/api/conversations/route.ts
Admin operations
- Admin dashboard
admin-dashboard/src/app/page.tsx - Listing approvals
admin-dashboard/src/app/api/approvals/route.ts - Audit records
admin-dashboard/src/app/api/audit/route.ts
Shared platform
- HTTP and realtime server
admin-dashboard/server.js - Firebase authentication
admin-dashboard/src/lib/firebase-admin.ts - Postgres database
- Database client
admin-dashboard/src/lib/prisma.ts - Prisma audit extension
admin-dashboard/src/lib/prisma-audit.ts
Other components
- App user
Connections 19
- App user → Mobile app: uses
- Mobile app → Property listings: browses listings
- Service discovery → Services catalog: fetches catalog
android-app/src/components/home/ServicesStrip.tsx - Service discovery → Section header: renders
android-app/src/components/home/ServicesStrip.tsx - Agent console → Agent dashboard API: fetches dashboard
android-app/src/components/agent/AgentClientsScreen.tsx - Property listings → Firebase authentication: verifies tokens
admin-dashboard/src/app/api/properties/route.ts - Property listings → Database client: queries listings
admin-dashboard/src/app/api/properties/route.ts - Property detail → Database client: reads and updates
admin-dashboard/src/app/api/properties/[id]/route.ts - Property detail → Property listings: uses coordinate parser
admin-dashboard/src/app/api/properties/[id]/route.ts - Property detail → Postgres database: deletes related records
admin-dashboard/src/app/api/properties/[id]/route.ts - Agent management → Database client: queries agent data
admin-dashboard/src/app/api/agents/route.ts - Conversations → Database client: reads and creates threads
admin-dashboard/src/app/api/conversations/route.ts - Conversations → Firebase authentication: requires authentication
admin-dashboard/src/app/api/conversations/route.ts - HTTP and realtime server → Firebase authentication: authenticates sockets
admin-dashboard/server.js - HTTP and realtime server → Conversations: serves API requests
- Database client → Postgres database: queries
admin-dashboard/src/lib/prisma.ts - Database client → Prisma audit extension: installs extension
admin-dashboard/src/lib/prisma.ts - Admin dashboard → Listing approvals: manages approvals
- Admin dashboard → Audit records: reviews audit records