How ayushiverma844/heritagesphere works
HeritageSphere is a heritage-discovery and storytelling application: visitors explore places and collections, browse a knowledge hub, and read illustrated, chapter-based stories; signed-in users can manage profiles and collections and review places. Administrators manage places, stories, categories, and users, and view dashboard analytics. The graph follows the visible frontend routing and backend mounting, with sampled review, story, and authentication implementation details. Several domain modules are present in the tree but their internal wiring was not sampled, so those links are left out.
Main entry points: App.jsx Route experience · app.js API application · api.js HTTP client · AdminDashboard.jsx Admin workspace
Components 26
Web experience
- Route experience
Frontend/src/App.jsx - Place discovery
Frontend/src/pages/Explore.jsx - Place details
Frontend/src/pages/PlaceDetails.jsx - HTTP client
Frontend/src/api/api.js
Identity and community
- Authentication
Frontend/src/pages/Auth.jsx - Auth service
Frontend/src/services/authService.js - Auth state
Frontend/src/context/AuthContext.jsx - My collection
Frontend/src/pages/MyCollection.jsx - User profile
Frontend/src/pages/Profile.jsx - Place reviews
Frontend/src/services/reviewService.js
Heritage content
- Knowledge hub
Frontend/src/pages/KnowledgeHub.jsx - Story reader
Frontend/src/pages/Story.jsx
Administration
- Admin workspace
Frontend/src/pages/AdminDashboard.jsx - Content management
Frontend/src/components/Admin/ManageStories.jsx - Dashboard data
Frontend/src/services/adminDashboardService.js
Backend services
- API application
Backend/app.js - Auth endpoints
Backend/routes/authRoutes.js - Story endpoints
Backend/routes/storyRoutes.js - Review endpoints
Backend/routes/reviewroutes.js - Story operations
Backend/controllers/storyController.js - Review operations
Backend/controllers/reviewController.js - Account operations
Backend/controllers/authController.js - Application database
Backend/config/db.js - Email service
Backend/config/mail.js - Image storage
Backend/config/cloudinary.js
Other components
- Visitor or user
Connections 27
- Visitor or user → Route experience: opens
- Route experience → Place discovery: routes to
- Route experience → Knowledge hub: routes to
- Route experience → Story reader: routes to
- Route experience → Place details: routes to
- Route experience → Authentication: routes to
- Route experience → My collection: routes to
- Route experience → User profile: routes to
- Route experience → Admin workspace: routes to
- Authentication → Auth service: uses
- Auth service → HTTP client: requests
- Place reviews → HTTP client: requests
- Admin workspace → Content management: opens
- Admin workspace → Dashboard data: loads
- Dashboard data → HTTP client: requests
- HTTP client → API application: sends requests
- API application → Auth endpoints: mounts
- API application → Story endpoints: mounts
- API application → Review endpoints: mounts
- Auth endpoints → Account operations: dispatches
- Story endpoints → Story operations: dispatches
- Review endpoints → Review operations: dispatches
- Account operations → Application database: queries
- Account operations → Email service: sends OTP email
- Story operations → Application database: queries
- Story operations → Image storage: stores images
- Review operations → Application database: reads and writes