How farish3444/hoteltrackerapp works
Nomad Trakker is a travel-discovery and trip-planning application with a React frontend and an Express/MongoDB backend. The main user journey is to choose a destination, explore nearby restaurants, hotels, and attractions on a map and in a list, then save places to a wishlist. Separate branches provide account verification and authentication, profile/avatar management, and wishlist persistence. The graph uses README statements and the provided source index/excerpts; unsampled module internals and some frontend-to-backend wiring are therefore not inferred.
Main entry points: Home.jsx Destination explorer · likeApi.js Wishlist operations · App.jsx Application routes · authApi.js Authentication operations
Components 30
Travel discovery
- Destination explorer
src/components2/Home.jsx - Place autocomplete
src/components/Header/Header.jsx - Custom map
src/components/Maps/Maps.jsx - Place results
src/components/List/List.jsx - Place details
src/components/PlaceDetails/PlaceDetails.jsx - TravelAdvisor API
- Google Maps services
- Wishlist views
src/components/Dashboard/Cart/Cart.jsx
Client state and API
- Application routes
src/App.jsx - Wishlist state
src/redux/slices/Likeslice.jsx - Wishlist operations
src/services/operations/likeApi.js - API transport
src/services/apiconnector.js - API endpoints
src/services/apiservice.js
Accounts and profiles
- Login and signup
src/components2/Signupform.jsx - Authentication operations
src/services/operations/authApi.js - Profile settings
src/components/Dashboard/Setting.jsx - Profile operations
src/services/operations/ProfileApi.js
Server and persistence
- Authentication routes
server/routes/User.js - Authentication controller
server/controllers/Auth.js - OTP verification
server/models/OTP.js - Verification email
server/utils/mailsender.js - JWT authorization
server/middleware/authorization.js - User records
server/models/User.js - Profile controller
server/controllers/Profile.js - Avatar upload
server/utils/imageUploader.js - Cloudinary
server/config/cloudinary.js - Wishlist routes
server/routes/Likeroute.js - Wishlist controller
server/controllers/Like.js - Wishlist records
server/models/Likemodel.js
Other components
- Traveler
Connections 31
- Traveler → Application routes: opens
src/App.jsx - Application routes → Destination explorer: routes to
src/App.jsx - Application routes → Login and signup: routes to
src/App.jsx - Application routes → Wishlist views: routes to
src/App.jsx - Destination explorer → Place autocomplete: renders
src/components2/Home.jsx - Destination explorer → Custom map: renders
src/components2/Home.jsx - Destination explorer → Place results: renders
src/components2/Home.jsx - Destination explorer → TravelAdvisor API: fetches nearby places
- Place autocomplete → Google Maps services: uses autocomplete
src/components/Header/Header.jsx - Destination explorer → Place results: loads results
src/components2/Home.jsx - Place details → Wishlist operations: saves places
src/components/PlaceDetails/PlaceDetails.jsx - Wishlist operations → Wishlist state: updates state
src/services/operations/likeApi.js - Wishlist operations → API transport: sends requests
src/services/operations/likeApi.js - Wishlist operations → API endpoints: uses endpoints
src/services/operations/likeApi.js - Wishlist views → Wishlist operations: loads wishlist
src/components/Dashboard/Cart/Cart.jsx - Login and signup → Authentication operations: submits signup
src/components2/Signupform.jsx - Authentication operations → API transport: sends requests
src/services/operations/authApi.js - Authentication operations → API endpoints: uses endpoints
src/services/operations/authApi.js - Authentication routes → Authentication controller: routes requests
server/routes/User.js - Authentication controller → User records: reads and writes
server/controllers/Auth.js - Authentication controller → OTP verification: creates and validates
server/controllers/Auth.js - OTP verification → Verification email: sends verification
server/models/OTP.js - JWT authorization → User records: loads user
server/middleware/authorization.js - Profile settings → Profile operations: submits changes
src/components/Dashboard/Setting.jsx - Profile operations → API transport: sends requests
src/services/operations/ProfileApi.js - Profile operations → API endpoints: uses endpoints
src/services/operations/ProfileApi.js - Profile controller → User records: updates profile
server/controllers/Profile.js - Profile controller → Avatar upload: uploads avatar
server/controllers/Profile.js - Avatar upload → Cloudinary: stores image
- Wishlist routes → Wishlist controller: routes requests
server/routes/Likeroute.js - Wishlist controller → Wishlist records: persists wishlist