How vinay99199/wanderlust works
Wanderlust is an Express/EJS travel-listing application backed by MongoDB. Users browse listings, create or manage listings, and can authenticate, save favourites, review listings, and book stays with Razorpay payments. The graph follows the documented HTTP routing and sampled controller/model calls; unsampled view rendering and several route implementations are not expanded into guessed relationships.
Main entry points: app.js Express application · routes/listing.js Listing routes · bookings.js Booking operations · models/listing.js Listing model
Components 21
Web entry
- Express application
app.js - Request validation
middleware.js
Listings and reviews
- Listing routes
routes/listing.js - Listing operations
controllers/listings.js - Review routes
routes/review.js - Review operations
controllers/reviews.js - Image storage
cloudConfig.js
Booking and payment
- Booking routes
routes/bookings.js - Booking operations
controllers/bookings.js - Razorpay payments
Accounts and support
- Account routes
routes/user.js - Account operations
controllers/users.js - Newsletter routes
routes/newsletter.js - Support routes
routes/support.js
MongoDB models
- Listing model
models/listing.js - Review model
models/review.js - Booking model
models/booking.js - User model
models/user.js - Newsletter model
models/newsletter.js
Other components
- Traveler / host
- MongoDB
Connections 30
- Traveler / host → Express application: uses
README.md - Express application → Listing routes: mounts routes
app.js - Express application → Review routes: mounts routes
app.js - Express application → Booking routes: mounts routes
app.js - Express application → Account routes: mounts routes
app.js - Express application → Newsletter routes: mounts routes
app.js - Express application → Support routes: mounts routes
app.js - Express application → User model: authenticates with
app.js - Listing routes → Listing operations: dispatches
routes/listing.js - Listing routes → Request validation: validates requests
routes/listing.js - Listing routes → Image storage: uploads images
routes/listing.js - Listing operations → Listing model: reads and writes
controllers/listings.js - Review routes → Review operations: dispatches
routes/review.js - Review routes → Request validation: checks reviews
routes/review.js - Review operations → Review model: creates and deletes
controllers/reviews.js - Review operations → Listing model: updates listing
controllers/reviews.js - Booking routes → Booking operations: dispatches
routes/bookings.js - Booking operations → Booking model: manages bookings
controllers/bookings.js - Booking operations → Listing model: checks listing
controllers/bookings.js - Booking operations → Razorpay payments: charges and refunds
controllers/bookings.js - Account routes → Account operations: dispatches
routes/user.js - Account operations → User model: manages accounts
controllers/users.js - Newsletter routes → Newsletter model: stores submissions
routes/newsletter.js - Support routes → User model: uses account data
routes/support.js - Express application → MongoDB: connects
app.js - Listing model → MongoDB: persists listings
models/listing.js - Review model → MongoDB: persists reviews
models/review.js - Booking model → MongoDB: persists bookings
models/booking.js - User model → MongoDB: persists accounts
models/user.js - Newsletter model → MongoDB: persists subscribers
models/newsletter.js