How manika2411/tripverse works
TripVerse is a travel-planning application: travelers explore destinations, plan trips and budgets, and manage plans alongside accounts and community posts. The frontend routes those experiences and holds client-side authentication state; an Express API provides domain endpoints backed by MongoDB models and external country and currency services. The sampled files show routing and several backend flows, but frontend service implementations and most domain controllers were not excerpted, so unverified client-to-API links are omitted.
Main entry points: App.jsx App routes · server.js Express server · authMiddleware.js Token protection · countryApi.js Country API client
Components 34
Web experience
- App routes
frontend/src/App.jsx - Auth state
frontend/src/context/AuthContext.jsx - Home
frontend/src/pages/Home.jsx - Community
frontend/src/pages/Community.jsx - Profile
frontend/src/pages/Profile.jsx - Community API client
frontend/src/services/communityApi.js
Travel planning
- Explore
frontend/src/pages/Explore.jsx - Destination details
frontend/src/pages/DestinationDetails.jsx - Trip planner
frontend/src/pages/TripPlanner.jsx - Budget planner
frontend/src/pages/BudgetPlanner.jsx - Dashboard
frontend/src/pages/Dashboard.jsx - Country API client
frontend/src/services/countryApi.js - Dashboard API client
frontend/src/services/dashboardApi.js
Backend API
- Express server
backend/server.js - Auth routes
backend/routes/authRoutes.js - Trip routes
backend/routes/tripRoutes.js - Budget routes
backend/routes/budgetRoutes.js - Community routes
backend/routes/communityRoutes.js - Country routes
backend/routes/countryRoutes.js - Currency route
backend/routes/currencyRoutes.js - Token protection
backend/middleware/authMiddleware.js - Trip operations
backend/controllers/tripController.js - Budget operations
backend/controllers/budgetController.js - Community operations
backend/controllers/communityController.js - Country operations
backend/controllers/countryController.js - Account operations
backend/controllers/authController.js
Data and integrations
- Trip records
backend/models/Trip.js - Budget records
backend/models/Budget.js - Post records
backend/models/Post.js - User records
backend/models/User.js - Country service
backend/services/countryService.js
Other components
- Traveler
- REST Countries
- Frankfurter
Connections 41
- Traveler → App routes: opens
frontend/src/App.jsx - App routes → Home: routes to
frontend/src/App.jsx - App routes → Explore: routes to
frontend/src/App.jsx - App routes → Destination details: routes to
frontend/src/App.jsx - App routes → Trip planner: routes to
frontend/src/App.jsx - App routes → Budget planner: routes to
frontend/src/App.jsx - App routes → Dashboard: routes to
frontend/src/App.jsx - App routes → Community: routes to
frontend/src/App.jsx - App routes → Profile: routes to
frontend/src/App.jsx - Explore → Country API client: uses
frontend/src/pages/Explore.jsx - Destination details → Country API client: uses
frontend/src/pages/DestinationDetails.jsx - Trip planner → Country API client: uses
frontend/src/pages/TripPlanner.jsx - Budget planner → Country API client: uses
frontend/src/pages/BudgetPlanner.jsx - Dashboard → Dashboard API client: uses
frontend/src/pages/Dashboard.jsx - Community → Community API client: uses
frontend/src/pages/Community.jsx - Community → Auth state: reads
frontend/src/pages/Community.jsx - Profile → Auth state: reads
frontend/src/pages/Profile.jsx - Profile → Dashboard API client: uses
frontend/src/pages/Profile.jsx - Home → App routes: is routed by
frontend/src/App.jsx - Express server → Auth routes: mounts
backend/server.js - Express server → Trip routes: mounts
backend/server.js - Express server → Budget routes: mounts
backend/server.js - Express server → Community routes: mounts
backend/server.js - Express server → Country routes: mounts
backend/server.js - Express server → Currency route: mounts
backend/server.js - Trip routes → Token protection: protects
backend/routes/tripRoutes.js - Budget routes → Token protection: protects
backend/routes/budgetRoutes.js - Community routes → Token protection: protects
backend/routes/communityRoutes.js - Trip routes → Trip operations: dispatches to
backend/routes/tripRoutes.js - Budget routes → Budget operations: dispatches to
backend/routes/budgetRoutes.js - Community routes → Community operations: dispatches to
backend/routes/communityRoutes.js - Country routes → Country operations: dispatches to
backend/routes/countryRoutes.js - Auth routes → Account operations: dispatches to
backend/routes/authRoutes.js - Token protection → User records: looks up
backend/middleware/authMiddleware.js - Trip operations → Trip records: reads and writes
backend/controllers/tripController.js - Budget operations → Budget records: reads and writes
backend/controllers/budgetController.js - Community operations → Post records: reads and writes
backend/controllers/communityController.js - Account operations → User records: uses
backend/controllers/authController.js - Country operations → Country service: delegates to
backend/controllers/countryController.js - Country service → REST Countries: requests data
backend/services/countryService.js - Currency route → Frankfurter: fetches rates
backend/routes/currencyRoutes.js