How abhishek-3191/airbnb works
This is an Express/Mongoose rental-listing app. Visitors browse listings; authenticated users can create, edit, and delete listings, upload images, register or log in, and add or remove reviews. The graph follows the documented capabilities and sampled route-to-controller calls. Booking, payment, and map search are future ideas in the README, not implemented product stages. Some supporting modules were not excerpted, so relationships not visible in source or README are omitted.
Main entry points: app.js Express application · routes/listing.js Listing routes · review.js Review routes · models/listing.js Listing records
Components 18
Web application
- Express application
app.js - Access and validation
middleware.js
Identity and access
- Account routes
routes/user.js - Account workflows
controllers/users.js - Session authentication
app.js - Account pages
views/users
Rental listings
- Listing routes
routes/listing.js - Listing workflows
controllers/listings.js - Listing validation
schema.js
Reviews and presentation
- Review routes
routes/review.js - Review workflows
controllers/reviews.js - Listing pages
views/listings
Persistence and media
- Listing records
models/listing.js - Review records
models/review.js - User records
models/user.js - Cloudinary media
cloudConfig.js
Other components
- Visitor
- MongoDB
Connections 27
- Visitor → Express application: requests pages
app.js - Express application → Listing routes: mounts at listings
app.js - Express application → Review routes: mounts reviews
app.js - Express application → Account routes: mounts accounts
app.js - Express application → Session authentication: configures sessions
app.js - Listing routes → Listing workflows: dispatches requests
routes/listing.js - Listing routes → Access and validation: checks access
routes/listing.js - Listing routes → Cloudinary media: configures uploads
routes/listing.js - Listing workflows → Listing records: reads and writes
controllers/listings.js - Listing workflows → Listing validation: uses schema
controllers/listings.js - Listing workflows → Listing pages: renders pages
controllers/listings.js - Review routes → Review workflows: dispatches requests
routes/review.js - Review routes → Access and validation: checks access
routes/review.js - Review workflows → Listing records: loads listing
controllers/reviews.js - Review workflows → Review records: creates and deletes
controllers/reviews.js - Account routes → Account workflows: dispatches requests
routes/user.js - Account routes → Access and validation: restores redirect
routes/user.js - Account workflows → User records: registers accounts
controllers/users.js - Account workflows → Account pages: renders pages
- Session authentication → User records: authenticates users
app.js - Listing records → MongoDB: persists listings
- Review records → MongoDB: persists reviews
- User records → MongoDB: persists users
- Listing routes → Listing records: loads model
routes/listing.js - Review routes → Review records: loads model
routes/review.js - Review routes → Listing records: loads model
routes/review.js - Account routes → User records: loads model
routes/user.js