How sonukumar1537/wanderlust works
Wanderlust is an Express/MongoDB vacation-listing application. Visitors browse listings, open details, and submit reviews; listing routes validate and persist listing changes, while review routes attach or remove reviews. A separate user route handles account flows, with Passport-backed sessions configured in the application. The graph also shows the listing/review data relationship and rendered views. The README is empty, and unsampled route and view details are not inferred; classroom files appear to be a separate demo, not part of the main request flow.
Main entry points: app.js Express app · routes/listing.js Listing routes · review.js Review routes · models/listing.js Listing model
Components 15
Web application
- Express app
app.js - Listing routes
routes/listing.js - Review routes
routes/review.js - Listing and account views
views
Marketplace domain
- Listing model
models/listing.js - Review model
models/review.js - Request validation
schema.js - MongoDB
- Sample listings
init/data.js
User identity
- User routes
routes/user.js - User model
models/user.js
Classroom demo
- Classroom server
classroom/server.js - Classroom user routes
classroom/routes/user.js - Classroom post routes
classroom/routes/post.js
Other components
- Visitor
Connections 16
- Visitor → Express app: requests
app.js - Express app → Listing routes: mounts listings
app.js - Express app → Review routes: mounts reviews
app.js - Express app → User routes: mounts accounts
app.js - Express app → User model: configures Passport
app.js - Express app → MongoDB: connects
app.js - Listing routes → Request validation: validates listings
routes/listing.js - Listing routes → Listing model: queries and updates
routes/listing.js - Review routes → Request validation: validates reviews
routes/review.js - Review routes → Listing model: loads listings
routes/review.js - Review routes → Review model: creates and deletes
routes/review.js - Listing routes → Listing and account views: renders pages
routes/listing.js - Listing model → Review model: deletes dependent reviews
models/listing.js - User routes → User model: uses accounts
routes/user.js - Classroom server → Classroom user routes: imports
classroom/server.js - Classroom server → Classroom post routes: imports
classroom/server.js