How amanmahat0/online-rental-system- works
Project type and purpose
• This is a full-stack “Online Rental System” comprising:
• A React single-page application (client/) delivering role-based UIs for end users, agents, owners, and admins.
• A Node.js/Express REST API (server/) implementing MVC (models, controllers, routes) with authentication, payment processing, and property management.
• A database (referenced in server/db_conn/db.js) for persisting users, properties, payments, etc.
• An external payment gateway (invoked by paymentController) and a file-uploads area for property images.
File structure
• client/ subdivides by roles:
• user/ – public pages (landing, booking, login/register) + user dashboard components
• agent/, owners/, admin/ – each has Routes, Sidebar, Pages and Context for state
• Payment and Payment History modules under client/src/Payment
• Global routes in client/src/Routes and client/src/user/Routes
• server/ follows MVC:
• model/ – Mongoose (or similar) schemas for users, agents, owners, properties, payments
• controller/ – business logic for each resource
• routes/ – Express routers mapping HTTP verbs & paths to controllers
• auth/ – JWT or session middleware
• db_conn/ – DB connection setup
• EncoderDecoder – password hashing utilities
• uploads/ – static store for file uploads
README
• Minimal title “Online-Rental-System” confirming the above architecture and use case.