How gokoolchasmaghar/gk-eyewear works
This is an eyewear e-commerce application: a React storefront and admin interface backed by Django REST modules. The user journey runs from product discovery and detail/reviews through cart, checkout with shipping addresses, and order follow-up; authentication and wishlist/cart state support that journey. Admin pages provide product, category, order, and user management. The README is only the Vite template, so capability coverage comes from the source tree and index. Backend module internals and endpoint routing were not sampled; links to specific backend domains are therefore omitted.
Main entry points: AppRoutes.jsx Page routing · api.js API client · App.jsx App shell · Checkout.jsx Checkout
Components 30
Storefront experience
- App shell
src/App.jsx - Page routing
src/routes/AppRoutes.jsx - Catalog browsing
src/pages/ProductListing.jsx - Product details
src/pages/ProductDetails.jsx - Product reviews
src/components/common/ProductReviews.jsx - Home experience
src/pages/Home.jsx - Static product data
src/data/products.js
Commerce state
- Authentication state
src/context/AuthContext.jsx - Cart state
src/context/CartContext.jsx - Wishlist state
src/context/WishlistContext.jsx - Cart review
src/pages/Cart.jsx - Checkout
src/pages/Checkout.jsx - Order confirmation
src/pages/OrderConfirmation.jsx - Order tracking
src/pages/TrackOrder.jsx - Wishlist page
src/pages/Wishlist.jsx - API client
src/services/api.js
Administration
- Admin dashboard
src/pages/AdminDashboard.jsx - Product management
src/pages/AdminProducts.jsx - Category management
src/pages/AdminCategories.jsx - Order management
src/pages/AdminOrders.jsx - User management
src/pages/AdminUsers.jsx
Django services
- Shipping addresses
backend/addresses/views.py - Order processing
backend/orders/views.py - Django REST API
backend/config/urls.py - Product services
backend/products/views.py - Cart services
backend/cart/views.py - Wishlist services
backend/wishlist/views.py - Review services
backend/reviews/views.py - User services
backend/users/views.py
Other components
- Shopper
Connections 28
- Shopper → Page routing: navigates
src/routes/AppRoutes.jsx - App shell → Page routing: renders
src/App.jsx - Page routing → Home experience: routes to
src/routes/AppRoutes.jsx - Page routing → Catalog browsing: routes to
src/routes/AppRoutes.jsx - Page routing → Product details: routes to
src/routes/AppRoutes.jsx - Page routing → Cart review: routes to
src/routes/AppRoutes.jsx - Page routing → Checkout: routes to
src/routes/AppRoutes.jsx - Page routing → Wishlist page: routes to
src/routes/AppRoutes.jsx - Page routing → Order confirmation: routes to
src/routes/AppRoutes.jsx - Page routing → Order tracking: routes to
src/routes/AppRoutes.jsx - Product details → Product reviews: renders
src/pages/ProductDetails.jsx - App shell → Authentication state: provides state
src/App.jsx - App shell → Cart state: provides state
src/App.jsx - App shell → Wishlist state: provides state
src/App.jsx - Cart review → Cart state: reads state
src/pages/Cart.jsx - Checkout → Cart state: reads state
src/pages/Checkout.jsx - Checkout → Authentication state: reads state
src/pages/Checkout.jsx - Checkout → API client: requests addresses and orders
src/pages/Checkout.jsx - Cart state → API client: calls cart API
src/context/CartContext.jsx - Wishlist state → API client: calls wishlist API
src/context/WishlistContext.jsx - Authentication state → API client: calls auth API
src/context/AuthContext.jsx - Product reviews → API client: requests reviews
src/components/common/ProductReviews.jsx - API client → Django REST API: sends REST requests
src/services/api.js - Page routing → Admin dashboard: routes to
src/routes/AppRoutes.jsx - Page routing → Product management: routes to
src/routes/AppRoutes.jsx - Page routing → Category management: routes to
src/routes/AppRoutes.jsx - Page routing → Order management: routes to
src/routes/AppRoutes.jsx - Page routing → User management: routes to
src/routes/AppRoutes.jsx