How richardherold32/rentbridge works
RentBridge is a rental-property management application for owners and tenants. Its central workflow is managing properties and leases, then handling rent payments, maintenance, inspections and tenant verification. The source tree also shows property inquiries, messaging, notifications, tax/expense tools and AI rent recommendations. The README is only a generic Next.js starter README, so it does not document product workflows. Relationships below are limited to imports and calls visible in sampled routes or SOURCE INDEX references; unsampled UI-to-API connections are not asserted.
Main entry points: leases/route.ts Lease management · auth.ts Session authentication · Property.ts Property records · maintenance/route.ts Maintenance tickets
Components 30
User experience
- Role dashboards
src/app/dashboard - Sign-in pages
src/app/login/page.tsx
Property lifecycle
- Property management
src/app/api/properties/route.ts - Rental inquiries
src/app/api/inquiries/route.ts - Rent estimator
src/app/api/ai/rent-recommend/route.ts - Property records
src/models/Property.ts - Inquiry records
src/models/PropertyInquiry.ts
Tenancy operations
- Lease management
src/app/api/leases/route.ts - Rent payments
src/app/api/payments/route.ts - Expenses and tax
src/app/api/expenses/route.ts - Lease records
src/models/Lease.ts - Payment records
src/models/Payment.ts - Expense records
src/models/Expense.ts
Tenant services
- Maintenance tickets
src/app/api/maintenance/route.ts - Property inspections
src/app/api/inspections/route.ts - Tenant verification
src/app/api/kyc/route.ts - Tenant messaging
src/app/api/chat/messages/route.ts - Notifications
src/app/api/notifications/route.ts - Ticket records
src/models/MaintenanceTicket.ts - Inspection records
src/models/PropertyInspection.ts - Verification records
src/models/TenantVerification.ts - Conversation records
src/models/Conversation.ts - Message records
src/models/Message.ts - Notification records
src/models/Notification.ts
Shared platform
- Session authentication
src/lib/auth.ts - Request validation
src/lib/validations.ts - Database connection
src/lib/mongodb.ts - User records
src/models/User.ts
Other components
- Owners
- Tenants
Connections 40
- Owners → Role dashboards: use
- Tenants → Role dashboards: use
- Owners → Sign-in pages: sign in
- Tenants → Sign-in pages: sign in
- Property management → Property records: reads and writes
src/app/api/properties/route.ts - Rental inquiries → Inquiry records: reads and writes
src/app/api/inquiries/route.ts - Rental inquiries → Property records: reads property
src/app/api/inquiries/route.ts - Rent estimator → Session authentication: checks session
src/app/api/ai/rent-recommend/route.ts - Lease management → Lease records: reads and writes
src/app/api/leases/route.ts - Lease management → Property records: reads and updates
src/app/api/leases/route.ts - Lease management → User records: finds tenant
src/app/api/leases/route.ts - Rent payments → Payment records: reads and writes
src/app/api/payments/route.ts - Rent payments → Property records: reads property
src/app/api/payments/route.ts - Expenses and tax → Expense records: reads and writes
src/app/api/expenses/route.ts - Expenses and tax → Property records: reads property
src/app/api/expenses/route.ts - Maintenance tickets → Ticket records: reads and writes
src/app/api/maintenance/route.ts - Maintenance tickets → Property records: reads property
src/app/api/maintenance/route.ts - Property inspections → Inspection records: reads and writes
src/app/api/inspections/route.ts - Property inspections → Lease records: reads lease
src/app/api/inspections/route.ts - Property inspections → Notification records: creates notice
src/app/api/inspections/route.ts - Tenant verification → Verification records: reads and writes
src/app/api/kyc/route.ts - Tenant verification → Lease records: reads leases
src/app/api/kyc/route.ts - Tenant verification → User records: reads users
src/app/api/kyc/route.ts - Tenant messaging → Conversation records: uses conversations
src/app/api/chat/messages/route.ts - Tenant messaging → Message records: reads and writes
src/app/api/chat/messages/route.ts - Notifications → Notification records: reads notices
src/app/api/notifications/route.ts - Lease management → Session authentication: checks session
src/app/api/leases/route.ts - Lease management → Request validation: validates lease
src/app/api/leases/route.ts - Maintenance tickets → Session authentication: checks session
src/app/api/maintenance/route.ts - Maintenance tickets → Request validation: validates ticket
src/app/api/maintenance/route.ts - Property inspections → Session authentication: checks session
src/app/api/inspections/route.ts - Tenant verification → Session authentication: checks session
src/app/api/kyc/route.ts - Tenant messaging → Session authentication: checks session
src/app/api/chat/messages/route.ts - Notifications → Session authentication: checks session
src/app/api/notifications/route.ts - Lease management → Database connection: connects database
src/app/api/leases/route.ts - Maintenance tickets → Database connection: connects database
src/app/api/maintenance/route.ts - Property inspections → Database connection: connects database
src/app/api/inspections/route.ts - Tenant verification → Database connection: connects database
src/app/api/kyc/route.ts - Tenant messaging → Database connection: connects database
src/app/api/chat/messages/route.ts - Notifications → Database connection: connects database
src/app/api/notifications/route.ts