How shivanshi388/tripease works
TripEase is a travel-planning application for exploring destinations, organizing trips and itineraries, tracking travel budgets, and receiving recommendations. Users navigate the React interface, authenticate, and use trip-planning features served by an Express API; a separate FastAPI service exposes machine-learning endpoints for recommendations, budget prediction, and itinerary generation. The backend’s budget and itinerary services implement distinct planning stages over trip and expense data. The source index supports several backend routes and service relationships, but many frontend feature calls and ML internals were not sampled, so those connections are omitted where they cannot be verified.
Main entry points: App.jsx React app · app.js Express API · main.py FastAPI service · destinationRoutes.js Destination routes
Components 30
Web application
- React app
frontend/src/App.jsx - Authentication UI
frontend/src/services/authService.js - Destination pages
frontend/src/pages/DestinationPage.jsx - Explore destinations
frontend/src/pages/Explore.jsx - Trip planning UI
frontend/src/pages/MyTrips.jsx - Recommendations UI
frontend/src/pages/Recommendations.jsx - Budget planner UI
frontend/src/pages/BudgetPlanner.jsx
Travel API
- Express API
backend/src/app.js - Authentication routes
backend/src/routes/authRoutes.js - User records
backend/src/models/User.js - User profile
backend/src/controllers/userController.js - Destination routes
backend/src/routes/destinationRoutes.js
Trip planning
- Trip routes
backend/src/routes/tripRoutes.js - Trip management
backend/src/services/tripService.js - Trip records
backend/src/models/Trip.js - Itinerary routes
backend/src/routes/itineraryRoutes.js - Itinerary controller
backend/src/controllers/itineraryController.js - Itinerary management
backend/src/services/itineraryService.js - Itinerary records
backend/src/models/Itinerary.js - Budget routes
backend/src/routes/budgetRoutes.js - Budget controller
backend/src/controllers/budgetController.js - Expense and budgets
backend/src/services/budgetService.js - Expense records
backend/src/models/Expense.js
ML services
- FastAPI service
ml-service/app/main.py - Destination recommender
ml-service/app/models/destination_recommender.py - Budget prediction
ml-service/app/api/routes/budget_prediction.py - Itinerary generation
ml-service/app/api/routes/itinerary.py
Other components
- Traveler
- Maps provider
- Weather provider
Connections 29
- Traveler → React app: uses
frontend/src/App.jsx - React app → Authentication UI: routes to
frontend/src/App.jsx - React app → Destination pages: routes to
frontend/src/App.jsx - React app → Explore destinations: routes to
frontend/src/App.jsx - React app → Trip planning UI: routes to
frontend/src/App.jsx - React app → Recommendations UI: routes to
frontend/src/App.jsx - Authentication UI → Authentication routes: requests auth
frontend/src/services/authService.js - Express API → Authentication routes: mounts
backend/src/app.js - Express API → Destination routes: mounts
backend/src/app.js - Express API → Trip routes: mounts
backend/src/app.js - Express API → Itinerary routes: mounts
backend/src/app.js - Express API → Budget routes: mounts
backend/src/app.js - Authentication routes → User records: reads and writes
backend/src/routes/authRoutes.js - Trip routes → Trip management: dispatches
backend/src/routes/tripRoutes.js - Trip management → Trip records: uses
- Itinerary routes → Itinerary controller: dispatches
backend/src/routes/itineraryRoutes.js - Itinerary controller → Itinerary management: calls
backend/src/controllers/itineraryController.js - Itinerary management → Itinerary records: reads and writes
backend/src/services/itineraryService.js - Itinerary management → Trip records: checks trip
backend/src/services/itineraryService.js - Budget routes → Budget controller: dispatches
backend/src/routes/budgetRoutes.js - Budget controller → Expense and budgets: calls
backend/src/controllers/budgetController.js - Expense and budgets → Expense records: reads and writes
backend/src/services/budgetService.js - Expense and budgets → Trip records: checks trip
backend/src/services/budgetService.js - Destination routes → Maps provider: uses maps
backend/src/routes/destinationRoutes.js - Destination routes → Weather provider: uses weather
backend/src/routes/destinationRoutes.js - FastAPI service → Destination recommender: registers route
ml-service/app/main.py - FastAPI service → Budget prediction: registers route
ml-service/app/main.py - FastAPI service → Itinerary generation: registers route
ml-service/app/main.py - Destination recommender → FastAPI service: uses model