How tonbunheng/tourism-frontend-travel works
AngkorVerses is a Cambodian tourism frontend for discovering destinations, events, galleries and businesses, with saved favorites, trip planning, reviews, and account features. The primary flow routes a visitor into discovery pages, which retrieve domain data through service modules and render it for browsing; authenticated tourists can save places, review them, or plan trips. A separate protected business-owner portal supports listing management and analytics. The graph combines sampled call evidence with README-documented capabilities; unsampled page-to-service links are omitted or marked unverified.
Main entry points: AppRoutes.jsx Application routes · services Tourism services · PlaceDetails.jsx Place details · businessService.js Business service
Components 28
Tourist experience
- Application routes
src/routes/AppRoutes.jsx - Main layout
src/layouts/Main.jsx - Destination discovery
src/pages/home/Home.jsx - Place details
src/pages/places/PlaceDetails.jsx - Province details
src/pages/provinces/ProvinceDetails.jsx - Events
src/pages/events/Events.jsx - Media gallery
src/pages/galleries/Galleries.jsx - Trip planning
src/pages/trips/TripDetails.jsx - Favorites
src/pages/favorites/Favorites.jsx
Identity and state
- Tourist account
src/pages/profiles/Profile.jsx - Authentication state
src/context/AuthContext.jsx - Travel state
src/context/TravelContext.jsx
Business portal
- Business discovery
src/pages/businesses/BusinessDetails.jsx - Business management
src/pages/business/BusinessManage.jsx - Business analytics
src/pages/business/BusinessAnalytics.jsx
Domain services
- Tourism services
src/services - Business service
src/services/businessService.js - Review service
src/services/reviewService.js - HTTP clients
src/services/api.js
Shared interface
- Navigation header
src/components/layout/Header.jsx - Support chat
src/components/chat/ChatWidget.jsx - Breadcrumbs
src/components/common/Breadcrumb.jsx - Review dialog
src/components/reviews/ReviewModal.jsx - Alert state
src/context/AlertContext.jsx - Alert dialog
src/components/common/AlertModal.jsx
Other components
- Tourist
- Business owner
- Tourism API
Connections 36
- Tourist → Application routes: opens
src/routes/AppRoutes.jsx - Business owner → Application routes: opens
src/routes/AppRoutes.jsx - Application routes → Main layout: wraps pages
src/routes/AppRoutes.jsx - Application routes → Destination discovery: routes to
src/routes/AppRoutes.jsx - Application routes → Place details: routes to
src/routes/AppRoutes.jsx - Application routes → Province details: routes to
src/routes/AppRoutes.jsx - Application routes → Events: routes to
src/routes/AppRoutes.jsx - Application routes → Media gallery: routes to
src/routes/AppRoutes.jsx - Application routes → Trip planning: routes to
src/routes/AppRoutes.jsx - Application routes → Favorites: routes to
src/routes/AppRoutes.jsx - Application routes → Tourist account: routes to
src/routes/AppRoutes.jsx - Application routes → Business discovery: routes to
src/routes/AppRoutes.jsx - Application routes → Business management: routes to
src/routes/AppRoutes.jsx - Application routes → Business analytics: routes to
src/routes/AppRoutes.jsx - Main layout → Navigation header: renders
src/layouts/Main.jsx - Main layout → Support chat: renders
src/layouts/Main.jsx - Destination discovery → Tourism services: loads content
src/pages/home/Home.jsx - Destination discovery → Place details: links to
- Media gallery → Tourism services: loads media
src/pages/galleries/Galleries.jsx - Place details → Review dialog: opens
src/pages/places/PlaceDetails.jsx - Review dialog → Review service: submits review
src/components/reviews/ReviewModal.jsx - Business discovery → Business service: loads business
src/pages/businesses/BusinessDetails.jsx - Business management → Business service: manages listing
src/pages/business/BusinessManage.jsx - Business analytics → Business service: loads metrics
- Tourist account → Authentication state: uses account state
src/pages/profiles/Profile.jsx - Travel state → Authentication state: checks identity
src/context/TravelContext.jsx - Travel state → Tourism services: loads shared data
src/context/TravelContext.jsx - Support chat → Tourism services: uses chat service
src/components/chat/ChatWidget.jsx - Tourism services → HTTP clients: uses HTTP client
src/services/chatService.js - Business service → HTTP clients: uses HTTP clients
src/services/businessService.js - Review service → HTTP clients: uses HTTP client
src/services/reviewService.js - HTTP clients → Tourism API: sends requests
src/services/api.js - Place details → Breadcrumbs: renders
src/pages/places/PlaceDetails.jsx - Business management → Breadcrumbs: renders
src/pages/business/BusinessManage.jsx - Alert state → Alert dialog: renders
src/context/AlertContext.jsx - Review dialog → Alert state: shows feedback
src/components/reviews/ReviewModal.jsx