How mightysyed12345-sketch/wanderlustee works
Wanderlust is an Express/EJS stay-discovery application backed by MongoDB. A visitor browses or searches stays, opens listing details, and can register or log in to create listings and reviews; listing pages can include mapped locations. The Explore interface adds category filtering, tax display, save controls, destination search, and an in-browser trip planner. The graph separates request routing, domain handlers, persistence, and presentation. Some UI and account behavior is represented from README/source-index evidence; their unsampled implementation details are not inferred.
Main entry points: app.js Express app · routes/listing.js Listing routes · controllers/listing.js Listing handlers · review.js Review routes
Components 20
Web runtime
- Express app
app.js - Listing routes
routes/listing.js - Review routes
routes/review.js - User routes
routes/user.js - Request middleware
middleware.js
Stay discovery
- Listing handlers
controllers/listing.js - Listing model
models/listing.js - Sample stays
init/data.js - Image storage config
views/cloudConfig.js
Accounts and reviews
- Review handlers
controllers/reviews.js - Review model
models/review.js - User handlers
controllers/users.js - User model
models/user.js
Browser experience
- Listing views
views/listings - Account views
views/users - Explore interface
public/js/explore.js - Listing map
public/js/map.js
Other components
- Visitor
- Cloudinary
- Mapbox geocoding
Connections 24
- Visitor → Express app: requests pages
README.md - Express app → Listing routes: mounts routes
app.js - Express app → Review routes: mounts routes
app.js - Express app → User routes: mounts routes
app.js - Express app → Listing model: connects database
app.js - Express app → Sample stays: seeds empty production DB
app.js - Listing routes → Request middleware: guards and validates
routes/listing.js - Listing routes → Listing handlers: dispatches
routes/listing.js - Listing routes → Image storage config: configures uploads
routes/listing.js - Listing handlers → Listing model: queries and saves
controllers/listing.js - Listing handlers → Listing views: renders pages
controllers/listing.js - Listing handlers → Mapbox geocoding: geocodes destinations
- Image storage config → Cloudinary: stores images
- Review routes → Request middleware: guards and validates
routes/review.js - Review routes → Review handlers: dispatches
routes/review.js - Review handlers → Listing model: updates reviews
controllers/reviews.js - Review handlers → Review model: saves and deletes
controllers/reviews.js - User routes → Request middleware: checks access
routes/user.js - User routes → User handlers: dispatches
routes/user.js - User handlers → User model: uses accounts
controllers/users.js - User handlers → Account views: renders account pages
- Listing views → Explore interface: supports explore features
README.md - Listing views → Listing map: presents listing maps
README.md - Explore interface → Visitor: shows recommendations
README.md