How nayira1205/bihar-explorer works
Bihar Explorer is a travel and culture guide for discovering Bihar, with destination, food, festival, and broader editorial content alongside trip-planning, account, wishlist, and admin experiences. Visitors browse the React application; the Express API exposes content and account routes, with admin-protected content changes and MongoDB-backed models. The tree also shows map, gallery, blog, FAQ, contact, and newsletter capabilities, but their implementations are not sampled. Client-to-API wiring and several route/controller interactions are therefore not drawn where source evidence is unavailable.
Main entry points: App.jsx React app · app.js Express API · destinationRoutes.js Destination routes · destinationController.js Destination service
Components 28
Visitor experience
- React app
client/src/App.jsx - Page router
client/src/router.jsx - Auth state
client/src/context/AuthContext.jsx - Wishlist state
client/src/context/WishlistContext.jsx - Account and wishlist
client/src/pages/ProfilePage.jsx - Admin dashboard
client/src/pages/AdminPage.jsx
Explore Bihar
- Home experience
client/src/pages/HomePage.jsx - Destinations
client/src/pages/DestinationsPage.jsx - Food and cuisine
client/src/pages/FoodPage.jsx - Festivals
client/src/pages/FestivalsPage.jsx - Experiences
client/src/pages/ExperiencesPage.jsx - Culture
client/src/pages/CulturePage.jsx - Travel planner
client/src/pages/TravelPlannerPage.jsx - Explore map
client/src/pages/ExploreMapPage.jsx - Editorial and media
client/src/pages/BlogsPage.jsx
API services
- Express API
server/app.js - Destination routes
server/routes/destinationRoutes.js - Destination service
server/controllers/destinationController.js - Food routes
server/routes/foodRoutes.js - Food service
server/controllers/foodController.js - Festival routes
server/routes/festivalRoutes.js - Authentication
server/controllers/authController.js
Data and identity
- Destination records
server/models/Destination.js - Food records
server/models/Food.js - Festival records
server/models/Festival.js - User records
server/models/User.js
Other components
- Visitor
- MongoDB
Connections 16
- Visitor → React app: uses
- React app → Page router: renders
- React app → Auth state: provides
- React app → Wishlist state: provides
- Express API → Destination routes: mounts
- Express API → Food routes: mounts
- Express API → Festival routes: mounts
- Destination routes → Destination service: dispatches
- Food routes → Food service: dispatches
- Destination service → Destination records: queries and writes
- Food service → Food records: queries and writes
- Authentication → User records: queries and writes
- Destination records → MongoDB: persists in
- Food records → MongoDB: persists in
- Festival records → MongoDB: persists in
- User records → MongoDB: persists in