How thiha129/frontend_booking_tour_dulich works
This is the React frontend of a MERN tour-booking product. Travelers browse and search tours, inspect details, and proceed through a protected booking checkout; accounts, reviews, and wishlists support that journey. A separate admin workflow manages tours, users, and bookings. The graph shows the frontend’s documented API boundary, local wishlist persistence, and key shared services. Backend internals are not present in this tree, and several page implementations are unsampled, so uncertain links are omitted rather than inferred.
Main entry points: Routers.jsx Page routing · AdminPage.jsx Admin console · SearchResultList.jsx Search results · WishlistContext.js Wishlist state
Components 21
Tour discovery
- Tour catalogue
src/pages/Tours.jsx - Tour search
src/shared/SearchBar.jsx - Search results
src/pages/SearchResultList.jsx - Tour details
src/pages/TourDetails.jsx - Tour card
src/shared/TourCard.jsx
Booking journey
- Booking form
src/components/Booking/Booking.jsx - Booking checkout
src/pages/BookingCheckout.jsx - Booking pricing
src/utils/bookingPrice.js
Accounts and admin
- Session state
src/context/AuthContext.js - Wishlist state
src/context/WishlistContext.js - Browser storage
- User profile
src/pages/ProfilePage.jsx - Admin console
src/pages/AdminPage.jsx - Tour editor
src/components/admin/TourFormModal.jsx - User editor
src/components/admin/UserFormModal.jsx - Image upload
src/utils/uploadImage.js
Shared frontend
- Application shell
src/App.js - Page routing
src/router/Routers.jsx - Language service
src/i18n/LanguageContext.jsx
Other components
- Traveler
- Backend API
Connections 30
- Traveler → Application shell: uses
README.md - Application shell → Page routing: renders
src/App.js - Page routing → Tour catalogue: routes to
src/router/Routers.jsx - Page routing → Tour details: routes to
src/router/Routers.jsx - Page routing → Search results: routes to
src/router/Routers.jsx - Page routing → Booking checkout: protects route
src/router/Routers.jsx - Page routing → User profile: protects route
src/router/Routers.jsx - Page routing → Admin console: guards route
src/router/Routers.jsx - Tour search → Backend API: requests matches
src/shared/SearchBar.jsx - Tour search → Search results: navigates with results
src/shared/SearchBar.jsx - Search results → Backend API: fetches matches
src/pages/SearchResultList.jsx - Tour catalogue → Tour card: renders
src/pages/Tours.jsx - Search results → Tour card: renders
src/pages/SearchResultList.jsx - Tour details → Booking form: renders
src/pages/TourDetails.jsx - Booking form → Booking pricing: calculates with
src/components/Booking/Booking.jsx - Booking form → Backend API: submits booking
README.md - Booking checkout → Booking pricing: calculates with
src/pages/BookingCheckout.jsx - Session state → Backend API: checks session
src/context/AuthContext.js - Wishlist state → Session state: reads session
src/context/WishlistContext.js - Wishlist state → Backend API: syncs wishlist
src/context/WishlistContext.js - Wishlist state → Browser storage: persists locally
src/context/WishlistContext.js - User profile → Backend API: loads profile
src/pages/ProfilePage.jsx - Admin console → Backend API: manages records
src/pages/AdminPage.jsx - Admin console → Tour editor: opens editor
src/pages/AdminPage.jsx - Admin console → User editor: manages users
src/pages/AdminPage.jsx - Tour editor → Image upload: uploads images
src/components/admin/TourFormModal.jsx - Tour editor → Backend API: saves tour
- User editor → Backend API: saves user
- Tour catalogue → Language service: translates labels
src/pages/Tours.jsx - Admin console → Language service: translates labels
src/pages/AdminPage.jsx