How sabarishpv/renteasemern works
RentEase is a rental-management web app for property owners and tenants. Owners and tenants sign in to role-specific views; owners can manage tenants, bills, announcements, and payments, while users can view bills and manage complaints. The frontend sends authenticated requests to an Express API, whose routes enforce access rules and use MongoDB-backed models. Announcement creation can also notify tenants by email and SMS. The graph follows the sampled routes and documented imports; several frontend-to-endpoint mappings are not shown, so that connection is left unverified.
Main entry points: App.jsx Route composition · server.js HTTP server · client.js API client · auth.js JWT authorization
Components 32
Web application
- Route composition
frontend/src/App.jsx - Home page
frontend/src/pages/index.jsx - Owner login
frontend/src/pages/OwnerLogin.jsx - Tenant login
frontend/src/pages/TenantLogin.jsx - Owner dashboard
frontend/src/pages/OwnerDashboard.jsx - Tenant dashboard
frontend/src/pages/TenantDashboard.jsx - Tenant management
frontend/src/pages/TenantsPage.jsx - Bill management
frontend/src/pages/BillsPage.jsx - Payments view
frontend/src/pages/PaymentsPage.jsx - Complaints view
frontend/src/pages/ComplaintsPage.jsx - Announcements view
frontend/src/pages/AnnouncementsPage.jsx - API client
frontend/src/api/client.js
API workflows
- HTTP server
backend/src/server.js - Authentication
backend/src/routes/authRoutes.js - Tenant accounts
backend/src/routes/tenantRoutes.js - Bills
backend/src/routes/billRoutes.js - Payments
backend/src/routes/paymentRoutes.js - Complaints
backend/src/routes/complaintRoutes.js - Announcements
backend/src/routes/announcementRoutes.js - Notification access
backend/src/routes/notifyRoutes.js
Identity and data
- JWT authorization
backend/src/middleware/auth.js - User records
backend/src/models/User.js - Property records
backend/src/models/Property.js - Bill records
backend/src/models/Bill.js - Payment records
backend/src/models/Payment.js - Complaint records
backend/src/models/Complaint.js - Announcement records
backend/src/models/Announcement.js
Notifications
- Email and SMS service
backend/src/services/notifyService.js
Other components
- Owner / tenant
- MongoDB
- SendGrid
- Twilio
Connections 48
- Owner / tenant → Route composition: uses
frontend/src/App.jsx - Route composition → Home page: routes to
frontend/src/App.jsx - Route composition → Owner login: routes to
frontend/src/App.jsx - Route composition → Tenant login: routes to
frontend/src/App.jsx - Route composition → Owner dashboard: protects route
frontend/src/App.jsx - Route composition → Tenant dashboard: protects route
frontend/src/App.jsx - Route composition → Tenant management: protects route
frontend/src/App.jsx - Route composition → Bill management: protects route
frontend/src/App.jsx - Route composition → Payments view: protects route
frontend/src/App.jsx - Route composition → Complaints view: protects route
frontend/src/App.jsx - Route composition → Announcements view: routes to
frontend/src/App.jsx - Owner login → API client: uses
frontend/src/pages/OwnerLogin.jsx - Tenant login → API client: uses
frontend/src/pages/TenantLogin.jsx - Owner dashboard → API client: uses
frontend/src/pages/OwnerDashboard.jsx - Tenant dashboard → API client: uses
frontend/src/pages/TenantDashboard.jsx - Tenant management → API client: uses
frontend/src/pages/TenantsPage.jsx - Bill management → API client: uses
frontend/src/pages/BillsPage.jsx - Payments view → API client: uses
frontend/src/pages/PaymentsPage.jsx - Complaints view → API client: uses
frontend/src/pages/ComplaintsPage.jsx - Announcements view → API client: uses
frontend/src/pages/AnnouncementsPage.jsx - API client → HTTP server: HTTP requests
- HTTP server → Authentication: mounts
backend/src/server.js - HTTP server → Bills: mounts
backend/src/server.js - HTTP server → Payments: mounts
backend/src/server.js - HTTP server → Complaints: mounts
backend/src/server.js - HTTP server → Announcements: mounts
backend/src/server.js - HTTP server → Notification access: mounts
backend/src/server.js - HTTP server → Tenant accounts: mounts
backend/src/server.js - HTTP server → MongoDB: connects
backend/src/server.js - Authentication → User records: reads / creates
backend/src/routes/authRoutes.js - Authentication → Property records: creates / reads
backend/src/routes/authRoutes.js - Tenant accounts → JWT authorization: uses
backend/src/routes/tenantRoutes.js - Tenant accounts → User records: reads / creates
backend/src/routes/tenantRoutes.js - Tenant accounts → Property records: reads
backend/src/routes/tenantRoutes.js - Bills → JWT authorization: uses
backend/src/routes/billRoutes.js - Bills → Bill records: reads / creates
backend/src/routes/billRoutes.js - Bills → User records: reads
backend/src/routes/billRoutes.js - Payments → JWT authorization: uses
backend/src/routes/paymentRoutes.js - Payments → Bill records: reads / updates
backend/src/routes/paymentRoutes.js - Payments → Payment records: reads / creates
backend/src/routes/paymentRoutes.js - Complaints → JWT authorization: uses
backend/src/routes/complaintRoutes.js - Complaints → Complaint records: reads / creates
backend/src/routes/complaintRoutes.js - Announcements → JWT authorization: uses
backend/src/routes/announcementRoutes.js - Announcements → Announcement records: reads / creates
backend/src/routes/announcementRoutes.js - Announcements → User records: reads tenants
backend/src/routes/announcementRoutes.js - Announcements → Email and SMS service: sends notices
backend/src/routes/announcementRoutes.js - Notification access → JWT authorization: uses
backend/src/routes/notifyRoutes.js - Notification access → Email and SMS service: uses
backend/src/routes/notifyRoutes.js