How nehakri2005/rentify works
Rentify is an Express property-rental application. Renters browse, search, filter, and view listings; owners manage listings and images; signed-in users can add reviews. The main request path is app setup → routed middleware → controllers → Mongo-backed models, with EJS views and static assets serving the interface. Authentication and listing/review authorization are distinct supporting stages. The README also describes map-based location viewing. Some controller and integration details are unsampled, so uncertain links are omitted or marked unverified.
Main entry points: app.js Express app · middleware.js Access and validation · routes/listing.js Listing routes · models/listing.js Listing model
Components 17
Web application
- Express app
app.js - Listing routes
routes/listing.js - Review routes
routes/review.js - EJS pages
views - Map display
public/js/map.js - Static assets
public
Identity and access
- User routes
routes/user.js - Account actions
controllers/user.js - Access and validation
middleware.js - User model
models/user.js
Property and reviews
- Listing actions
controllers/listing.js - Review actions
controllers/review.js - Listing model
models/listing.js - Review model
models/review.js
Persistence and media
- MongoDB
- Image storage config
cloudConfig.js
Other components
- Renter or owner
Connections 22
- Renter or owner → Express app: sends requests
- Express app → Listing routes: routes requests
app.js - Express app → Review routes: routes requests
app.js - Express app → User routes: routes requests
app.js - Express app → MongoDB: connects to
app.js - Express app → User model: configures auth
app.js - Express app → Static assets: serves files
app.js - Listing routes → Listing actions: dispatches to
routes/listing.js - Review routes → Review actions: dispatches to
routes/review.js - User routes → Account actions: dispatches to
routes/user.js - Listing routes → Access and validation: applies checks
routes/listing.js - Review routes → Access and validation: applies checks
routes/review.js - User routes → Access and validation: applies redirect
routes/user.js - Listing actions → Listing model: uses model
controllers/listing.js - Review actions → Listing model: updates listings
controllers/review.js - Review actions → Review model: creates or deletes
controllers/review.js - Access and validation → Listing model: checks ownership
middleware.js - Access and validation → Review model: checks authorship
middleware.js - Listing model → Review model: cleans related reviews
models/listing.js - Listing routes → Image storage config: configures uploads
routes/listing.js - Express app → EJS pages: renders pages
- Map display → Renter or owner: shows locations
README.md