How tonbunheng/tourism-admin works
AngkorVerses Admin is a React management portal for tourism-content curation, moderation, operational oversight, and reporting. Staff sign in, pass role-based route guards, and use the protected dashboard to manage domain records; page modules call service modules that communicate with the Laravel API. The README documents further capabilities and access levels, but many page implementations were not sampled, so links for those branches are limited to documented routing or omitted. The graph shows major product areas without claiming unsampled implementation details.
Main entry points: AppRoutes.jsx Routes and RBAC · services API service layer · api.js HTTP client · authService.js Authentication service
Components 30
Portal access
- Staff login
src/pages/auth/Login.jsx - Routes and RBAC
src/routes/AppRoutes.jsx - Route guards
src/routes/ProtectedRoute.jsx - Admin workspace
src/layouts/Main.jsx
Tourism content
- Places directory
src/pages/places - Categories
src/pages/categories/Categories.jsx - Provinces directory
src/pages/provinces - Cultural events
src/pages/events - Tour packages
src/pages/tours/Tours.jsx - Guide directory
src/pages/guides - Media galleries
src/pages/galleries
Operations oversight
- Executive dashboard
src/pages/dashboard/Dashboard.jsx - Business moderation
src/pages/businesses/Businesses.jsx - Booking management
src/pages/bookings/Bookings.jsx - Reviews and ratings
src/pages/ratings - Favorites analytics
src/pages/favorites - Notifications center
src/pages/notifications/Notifications.jsx - User management
src/pages/users - Reports and exports
src/pages/reports - Security defense
src/pages/security - Live user tracking
src/pages/tracking - Deletion requests
src/pages/delete - System settings
src/pages/settings - Staff profile
src/pages/profiles
Shared platform
- API service layer
src/services - Authentication service
src/services/authService.js - HTTP client
src/services/api.js - Alert context
src/context/AlertContext.jsx
Other components
- Staff user
- Laravel API
Connections 38
- Staff user → Staff login: signs in
README.md - Staff login → Authentication service: authenticates with
src/services/authService.js - Authentication service → HTTP client: requests through
src/services/authService.js - HTTP client → Laravel API: sends API requests
README.md - Routes and RBAC → Route guards: guards routes
src/routes/AppRoutes.jsx - Routes and RBAC → Staff login: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Admin workspace: wraps protected pages
src/routes/AppRoutes.jsx - Routes and RBAC → Executive dashboard: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Places directory: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Categories: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Provinces directory: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Cultural events: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Tour packages: routes to
README.md - Routes and RBAC → Guide directory: routes to
README.md - Routes and RBAC → Media galleries: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Business moderation: routes to
README.md - Routes and RBAC → Booking management: routes to
README.md - Routes and RBAC → Reviews and ratings: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Favorites analytics: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Notifications center: routes to
README.md - Routes and RBAC → User management: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Reports and exports: routes to
README.md - Routes and RBAC → Security defense: routes to
README.md - Routes and RBAC → Live user tracking: routes to
README.md - Routes and RBAC → Deletion requests: routes to
README.md - Routes and RBAC → System settings: routes to
src/routes/AppRoutes.jsx - Routes and RBAC → Staff profile: routes to
src/routes/AppRoutes.jsx - Admin workspace → Executive dashboard: renders protected content
src/layouts/Main.jsx - Places directory → API service layer: uses data services
- Categories → API service layer: calls category service
src/pages/categories/Categories.jsx - Booking management → API service layer: calls booking service
src/pages/bookings/Bookings.jsx - Business moderation → API service layer: calls business service
src/pages/businesses/Businesses.jsx - Tour packages → API service layer: calls tour service
src/pages/tours/Tours.jsx - Notifications center → API service layer: calls notification service
src/pages/notifications/Notifications.jsx - API service layer → HTTP client: issues HTTP calls
src/services/reviewService.js - Reports and exports → HTTP client: loads report data
- Authentication service → Staff user: stores session
src/services/authService.js - Alert context → Admin workspace: provides shared alerts