How vivek-63/mern-project works
Voyago is an Express/Mongoose accommodation-booking platform. Guests browse and search listings, inspect location and booking details, then use account and booking features; hosts manage listings and booking requests, while admins manage platform activity. The graph includes documented reviews, dashboards, maps, nearby places, and image storage. Several controllers and route files were not sampled, so their relationships are shown only where the README documents the capability; those links are dashed and marked unverified.
Main entry points: app.js Express application · listing.js Listing workflows · profile.js Customer profile · review.js Review workflows
Components 34
Web runtime
- Express application
app.js - Listing routes
routes/listing.js - Review routes
routes/review.js - User routes
routes/user.js - Request validation
middlewares/validate.js - Rate limiting
middlewares/rateLimiter.js - Application logging
utils/logger.js - Error responses
middlewares/errorHandler.js
Listings and discovery
- Listing workflows
controllers/listing.js - Listing pages
views/listings - Geocoding
services/geoCoder.js - Nearby places
services/nearbyPlaces.js - Interactive maps
public/js/map.js - Review workflows
controllers/review.js - Review display
views/listings/show.ejs
Bookings
- Booking routes
routes/bookings.js - Booking workflows
controllers/bookings.js - Booking pages
views/booking
Accounts and operations
- Host routes
routes/host.js - Host workflows
controllers/host.js - Admin routes
routes/admin.js - Admin workflows
controllers/admin.js - Customer profile
controllers/profile.js - Authentication
controllers/user.js - Role dashboards
views/dashboards - Access checks
middlewares/auth.js - Session and login
middlewares/isLoggedin.js
Data and integrations
- Listing records
models/listings.js - Booking records
models/booking.js - Review records
models/reviews.js - User records
models/user.js - Image storage
- Geoapify services
Other components
- Guest / host / admin
Connections 46
- Guest / host / admin → Express application: uses
README.md - Express application → Listing routes: mounts
app.js - Express application → Review routes: mounts
app.js - Express application → User routes: mounts
app.js - Express application → Booking routes: mounts
app.js - Express application → Host routes: mounts
app.js - Express application → Admin routes: mounts
app.js - Listing routes → Listing workflows: dispatches
routes/listing.js - Review routes → Review workflows: dispatches
routes/review.js - User routes → Authentication: dispatches
routes/user.js - User routes → Customer profile: dispatches
routes/user.js - Listing workflows → Listing records: queries
controllers/listing.js - Listing workflows → Booking records: checks dates
controllers/listing.js - Listing workflows → Geocoding: geocodes
controllers/listing.js - Listing workflows → Nearby places: fetches places
controllers/listing.js - Listing workflows → Listing pages: renders
controllers/listing.js - Nearby places → Geoapify services: queries
- Interactive maps → Geoapify services: maps location
- Review workflows → Listing records: updates listing
controllers/review.js - Review workflows → Review records: saves review
controllers/review.js - Review workflows → Review display: redirects to
controllers/review.js - Booking routes → Booking workflows: dispatches
- Booking workflows → Booking records: manages bookings
- Booking workflows → Booking pages: serves booking UI
- Host routes → Host workflows: dispatches
- Host workflows → Role dashboards: serves host dashboard
- Admin routes → Admin workflows: dispatches
- Admin workflows → Role dashboards: serves admin dashboard
- Customer profile → Role dashboards: serves customer dashboard
- Customer profile → Listing records: reads
controllers/profile.js - Customer profile → User records: reads
controllers/profile.js - Customer profile → Review records: reads
controllers/profile.js - Customer profile → Booking records: reads
controllers/profile.js - Express application → User records: authenticates users
app.js - Listing workflows → Image storage: stores images
- Listing routes → Request validation: validates input
routes/listing.js - Review routes → Request validation: validates input
routes/review.js - Listing routes → Access checks: checks ownership
routes/listing.js - Review routes → Access checks: checks authorship
routes/review.js - User routes → Session and login: checks login
routes/user.js - Express application → Rate limiting: configures limiter
app.js - Express application → Error responses: handles errors
app.js - Error responses → Application logging: logs errors
middlewares/errorHandler.js - Listing workflows → Application logging: logs actions
controllers/listing.js - Review workflows → Application logging: logs actions
controllers/review.js - Listing records → Review records: references reviews
models/listings.js