How vishalsinha1602/jnubazaar works
JNUBazaar is a JNU campus marketplace for discovering and selling listings, with account, wishlist, chat, and notification features. The main workflow routes users into home or marketplace views, loads listings through the product service, and supports listing details and seller submissions; authentication gates some interactions. The graph captures the sampled routing, auth, and API layers plus README-unelaborated product areas visible in the route index. The README provides no further capability detail, and unsampled page internals are not inferred.
Main entry points: AppRoutes.jsx Route coordinator · productService.js Product service · wishlistService.js Wishlist service · authService.js Auth service
Components 23
Application
- Route coordinator
src/app/routes/AppRoutes.jsx - App providers
src/app/providers/AppProviders.jsx - Navigation
src/shared/components/layout/Navbar.jsx - HTTP client
src/shared/api/axiosClient.js - HTTP interceptors
src/shared/api/interceptors.js - API endpoints
src/shared/api/apiEndpoints.js
Identity
- Sign-in and profile
src/features/auth/pages/Login.jsx - Session context
src/features/auth/context/AuthContext.jsx - Auth hook
src/features/auth/hooks/useAuth.js - Auth service
src/features/auth/services/authService.js - Token storage
src/features/auth/utils/tokenService.js
Marketplace
- Home discovery
src/features/home/pages/Home.jsx - Search controls
src/features/home/components/SearchBar.jsx - Marketplace browse
src/features/products/pages/Marketplace.jsx - Product details
src/features/products/pages/ProductDetails.jsx - Sell listing
src/features/sellers/pages/SellProduct.jsx - Product service
src/features/products/services/productService.js - Marketplace catalog
src/shared/config/marketplaceData.js
Engagement
- Wishlist view
src/features/wishlist/pages/Wishlist.jsx - Wishlist service
src/features/wishlist/services/wishlistService.js - Campus chat
src/features/chat/pages/Chat.jsx - Notifications
src/features/notifications/pages/Notifications.jsx
Other components
- Campus user
Connections 31
- Campus user → Route coordinator: navigates
src/app/routes/AppRoutes.jsx - App providers → Session context: provides
src/app/providers/AppProviders.jsx - Route coordinator → Navigation: renders
src/app/routes/AppRoutes.jsx - Route coordinator → Home discovery: routes to
src/app/routes/AppRoutes.jsx - Route coordinator → Marketplace browse: routes to
src/app/routes/AppRoutes.jsx - Route coordinator → Product details: routes to
src/app/routes/AppRoutes.jsx - Route coordinator → Sell listing: routes to
src/app/routes/AppRoutes.jsx - Route coordinator → Sign-in and profile: routes to
src/app/routes/AppRoutes.jsx - Route coordinator → Wishlist view: routes to
src/app/routes/AppRoutes.jsx - Route coordinator → Campus chat: routes to
src/app/routes/AppRoutes.jsx - Route coordinator → Notifications: routes to
src/app/routes/AppRoutes.jsx - Route coordinator → Auth hook: reads session
src/app/routes/AppRoutes.jsx - Route coordinator → Product service: loads listings
src/app/routes/AppRoutes.jsx - Route coordinator → Wishlist service: loads wishlist
src/app/routes/AppRoutes.jsx - Home discovery → Search controls: renders
src/features/home/pages/Home.jsx - Search controls → Marketplace catalog: uses categories
src/features/home/components/SearchBar.jsx - Marketplace browse → Product service: fetches listings
src/features/products/pages/Marketplace.jsx - Marketplace browse → Wishlist service: checks wishlist
src/features/products/pages/Marketplace.jsx - Sell listing → Product service: saves listing
src/features/sellers/pages/SellProduct.jsx - Wishlist view → Wishlist service: loads items
src/features/wishlist/pages/Wishlist.jsx - Session context → Auth service: delegates auth
src/features/auth/context/AuthContext.jsx - Session context → Token storage: reads token
src/features/auth/context/AuthContext.jsx - Auth hook → Session context: reads context
src/features/auth/hooks/useAuth.js - Auth service → Token storage: manages tokens
src/features/auth/services/authService.js - Auth service → HTTP client: sends requests
src/features/auth/services/authService.js - Product service → HTTP client: sends requests
src/features/products/services/productService.js - Wishlist service → HTTP client: sends requests
src/features/wishlist/services/wishlistService.js - HTTP client → HTTP interceptors: configures
src/shared/api/axiosClient.js - Auth service → API endpoints: uses routes
src/features/auth/services/authService.js - Product service → API endpoints: uses routes
src/features/products/services/productService.js - Wishlist service → API endpoints: uses routes
src/features/wishlist/services/wishlistService.js