How sampathkumarveesam/mywebsite works
AppVerse is a React frontend for a gamified community of activities: users enter through a landing page, authenticate, then access protected dashboard, games, learning, shopping, food, entertainment, premium, and wallet experiences. Authentication and cross-module rewards are handled by shared contexts, with user and Loop state persisted in browser storage. The README describes the MVP focus on landing, authentication, dashboard, and global navigation; the source index also identifies the broader feature pages. No backend service is evidenced in the supplied material.
Main entry points: App.tsx Route application · AuthContext.tsx Auth context · LoopContext.tsx Loop rewards · GamesArena.tsx Games arena
Components 19
Entry and navigation
- Route application
src/App.tsx - Landing page
src/pages/LandingPage.tsx - Login page
src/pages/LoginPage.tsx - Signup page
src/pages/SignupPage.tsx - Protected route
src/components/ProtectedRoute.tsx - Global layout
src/components/MainLayout.tsx
Identity and rewards
- Auth context
src/contexts/AuthContext.tsx - Loop rewards
src/contexts/LoopContext.tsx - Browser storage
App experiences
- Dashboard
src/pages/Dashboard.tsx - Learning hub
src/pages/LearningHub.tsx - Marketplace
src/pages/Marketplace.tsx - Food
src/pages/Food.tsx - Entertainment
src/pages/Entertainment.tsx - Premium
src/pages/Premium.tsx - Wallet
src/pages/Wallet.tsx
Games
- Games arena
src/pages/GamesArena.tsx - Game components
src/components/games
Other components
- User
Connections 36
- User → Route application: opens app
- Route application → Landing page: routes to
src/App.tsx - Route application → Login page: routes to
src/App.tsx - Route application → Signup page: routes to
src/App.tsx - Route application → Protected route: protects routes
src/App.tsx - Route application → Auth context: provides auth
src/App.tsx - Route application → Loop rewards: provides rewards
src/App.tsx - Protected route → Auth context: checks identity
src/components/ProtectedRoute.tsx - Protected route → Global layout: renders shell
src/components/ProtectedRoute.tsx - Route application → Dashboard: routes to
src/App.tsx - Route application → Games arena: routes to
src/App.tsx - Route application → Learning hub: routes to
src/App.tsx - Route application → Marketplace: routes to
src/App.tsx - Route application → Food: routes to
src/App.tsx - Route application → Entertainment: routes to
src/App.tsx - Route application → Premium: routes to
src/App.tsx - Route application → Wallet: routes to
src/App.tsx - Login page → Auth context: authenticates with
src/pages/LoginPage.tsx - Signup page → Auth context: registers with
src/pages/SignupPage.tsx - Global layout → Auth context: reads session
src/components/MainLayout.tsx - Games arena → Game components: renders games
src/pages/GamesArena.tsx - Dashboard → Auth context: reads user state
src/pages/Dashboard.tsx - Learning hub → Auth context: reads user state
src/pages/LearningHub.tsx - Learning hub → Loop rewards: records activity
src/pages/LearningHub.tsx - Marketplace → Auth context: reads user state
src/pages/Marketplace.tsx - Marketplace → Loop rewards: records activity
src/pages/Marketplace.tsx - Food → Auth context: reads user state
src/pages/Food.tsx - Food → Loop rewards: records activity
src/pages/Food.tsx - Entertainment → Auth context: reads user state
src/pages/Entertainment.tsx - Entertainment → Loop rewards: records activity
src/pages/Entertainment.tsx - Premium → Auth context: reads user state
src/pages/Premium.tsx - Games arena → Auth context: reads user state
src/pages/GamesArena.tsx - Games arena → Loop rewards: records activity
src/pages/GamesArena.tsx - Wallet → Auth context: reads user state
src/pages/Wallet.tsx - Auth context → Browser storage: reads and writes
src/contexts/AuthContext.tsx - Loop rewards → Browser storage: reads and writes
src/contexts/LoopContext.tsx