How hitesh-kumar123/travel-plans- works
PackGo is a travel-planning web app: travellers explore destinations, create and manage trips, then organize itineraries, packing and budget details while using weather, translation and booking tools. The React app routes these experiences through an authenticated API client to an Express backend, whose route/controller/model layers persist user and trip data in MongoDB. The README documents analytics and recently viewed destinations as additional capabilities. Several feature modules were not excerpted, so links involving them are omitted where implementation relationships cannot be verified; README supports the capability coverage.
Main entry points: App.jsx Route application · tripController.js Trip operations · TravelToolsPage.jsx Weather and translator · client.js HTTP client
Components 34
Travel web app
- Route application
client/src/App.jsx - Home and dashboard
client/src/features/static/HomePage.jsx - Destination explorer
client/src/features/destinations/ExplorePage.jsx - Destination details
client/src/features/destinations/DestinationDetailPage.jsx - HTTP client
client/src/services/api/client.js - Auth API adapter
client/src/services/api/authApi.js
Identity and profile
- Session state
client/src/context/AuthContext.jsx - Profile management
client/src/features/profile/ProfilePage.jsx - Auth operations
server/controllers/authController.js - User records
server/models/User.js
Trip planning
- Journey dashboard
client/src/features/trips/MyJourneyPage.jsx - Trip creation
client/src/features/trips/CreateTripModal.jsx - Trip workspace
client/src/features/trips/TripDetailPage.jsx - Trip planning tabs
client/src/features/trips/tabs - Shared trip view
client/src/features/trips/SharedTripPage.jsx - Trip operations
server/controllers/tripController.js - Trip records
server/models/Trip.js - Destination catalogue
server/models/Destination.js - Expense tracking
server/controllers/expenseController.js - Expense records
server/models/Expense.js - Packing lists
server/controllers/packingController.js - Packing records
server/models/PackingList.js
Travel services
- Weather and translator
client/src/features/tools/TravelToolsPage.jsx - Flight and hotel search
server/controllers/bookingController.js - Weather service
server/controllers/weatherController.js - Translation service
server/controllers/translatorController.js - OpenTripMap lookup
server/utils/openTripMapClient.js
API and persistence
- Express API server
server/server.js - Auth routes
server/routes/auth.js - JWT guard
server/middleware/auth.js - Trip routes
server/routes/trips.js
Other components
- Traveller
- MongoDB
- OpenWeatherMap
Connections 37
- Traveller → Route application: uses
client/src/App.jsx - Route application → Home and dashboard: routes to
client/src/App.jsx - Route application → Destination explorer: routes to
client/src/App.jsx - Route application → Destination details: routes to
client/src/App.jsx - Route application → Journey dashboard: protects route
client/src/App.jsx - Route application → Trip workspace: protects route
client/src/App.jsx - Route application → Weather and translator: protects route
client/src/App.jsx - Route application → Profile management: protects route
client/src/App.jsx - Route application → Session state: provides session
client/src/App.jsx - Destination explorer → HTTP client: uses
client/src/features/destinations/ExplorePage.jsx - Session state → Auth API adapter: calls
client/src/context/AuthContext.jsx - Auth API adapter → HTTP client: uses
client/src/services/api/authApi.js - Profile management → Auth API adapter: calls
client/src/features/profile/ProfilePage.jsx - Weather and translator → HTTP client: uses
client/src/features/tools/TravelToolsPage.jsx - HTTP client → Express API server: sends API requests
- Express API server → Auth routes: mounts
server/server.js - Express API server → Trip routes: mounts
server/server.js - Auth routes → JWT guard: guards private routes
server/routes/auth.js - Auth routes → Auth operations: dispatches
server/routes/auth.js - Auth operations → User records: reads and writes
server/controllers/authController.js - Trip routes → Trip operations: dispatches
server/routes/trips.js - Trip routes → JWT guard: guards routes
server/routes/trips.js - Trip operations → Trip records: reads and writes
server/controllers/tripController.js - Trip operations → Destination catalogue: looks up images
server/controllers/tripController.js - Expense tracking → Expense records: reads and writes
server/controllers/expenseController.js - Expense tracking → Trip records: checks ownership
server/controllers/expenseController.js - Packing lists → Packing records: reads and writes
server/controllers/packingController.js - Flight and hotel search → OpenTripMap lookup: queries places
server/controllers/bookingController.js - Auth operations → MongoDB: persists users
- Trip operations → MongoDB: persists trips
- Weather service → OpenWeatherMap: fetches forecasts
- Destination explorer → Destination catalogue: loads catalogue
- Trip workspace → Trip planning tabs: renders trip tools
- Journey dashboard → Trip creation: opens creation
- Shared trip view → Trip operations: loads shared trip
- Weather and translator → Weather service: requests weather
- Weather and translator → Translation service: requests translation