How rgh-code/nepecom works
NepEcom is a React storefront. Shoppers browse and search products, inspect details, add items to a cart or buy now, then check out and place an order; account and profile pages support that flow. The graph also preserves authentication, orders, collections, and the documented-by-routes deals, arrivals, wishlist, and membership areas. Source excerpts establish several component-to-API calls; links for unsampled routes use App.jsx routing, and backend behavior beyond the HTTP client is not inspected.
Main entry points: App.jsx Route App · CheckoutPage.jsx Checkout · ProductDetails.jsx Product Details · ProductCard.jsx Product Card
Components 34
Storefront
- Route App
src/App.jsx - Navigation
src/components/Navbar.jsx - Home
src/pages/Home.jsx - Catalog Pages
src/pages/collections.jsx - Search
src/pages/SearchPage.jsx - Deals and Arrivals
src/pages/DealsPage.jsx - Wishlist
src/pages/WishListPage.jsx - Membership
src/pages/Membership.jsx - Product Grid
src/components/ProductGrid.jsx - Product Card
src/components/ProductCard.jsx - Product Details
src/components/ProductDetails.jsx
Cart and Orders
- Cart View
src/components/CartCards.jsx - Checkout
src/pages/CheckoutPage.jsx - Order History
src/components/Orders.jsx
Accounts
- Login and Signup
src/pages/Login.jsx - Google Sign-In
src/components/GoogleSignIn.jsx - Profile
src/pages/Profile.jsx - Complete Profile
src/pages/CompleteProfilePage.jsx - Account Activation
src/pages/ActivatePage.jsx
API and State
- Auth Check
src/utils/authentication.js - Cart ID State
src/utils/cartStorage.js - Cart API
src/api/carts.js - Product API
src/api/products.js - Auth API
src/api/auth.js - Orders API
src/api/orders.js - Customer API
src/api/customers.js - Address API
src/api/address.js - HTTP Client
src/api/axios.js - Browser Storage
UI Components
- UI Primitives
src/components/ui/button.jsx - Card Primitives
src/components/ui/card.jsx - Input Primitive
src/components/ui/input.jsx
Other components
- Shopper
- Store Backend
Connections 48
- Shopper → Route App: opens storefront
src/App.jsx - Route App → Navigation: renders navigation
src/App.jsx - Route App → Home: routes to
src/App.jsx - Route App → Catalog Pages: routes to
src/App.jsx - Route App → Search: routes to
src/App.jsx - Route App → Deals and Arrivals: routes to
src/App.jsx - Route App → Wishlist: routes to
src/App.jsx - Route App → Membership: routes to
src/App.jsx - Route App → Product Grid: routes to
src/App.jsx - Route App → Product Details: routes to
src/App.jsx - Route App → Cart View: routes to
src/App.jsx - Route App → Checkout: routes to
src/App.jsx - Route App → Order History: routes to
src/App.jsx - Route App → Login and Signup: routes to
src/App.jsx - Route App → Profile: routes to
src/App.jsx - Route App → Complete Profile: routes to
src/App.jsx - Route App → Account Activation: routes to
src/App.jsx - Home → Product Grid: renders
src/pages/Home.jsx - Catalog Pages → Product Grid: renders
src/pages/collections.jsx - Search → Product API: fetches products
src/pages/SearchPage.jsx - Search → Product Card: renders results
src/pages/SearchPage.jsx - Product Grid → Product API: fetches products
src/components/ProductGrid.jsx - Product Grid → Product Card: renders items
src/components/ProductGrid.jsx - Product Card → Cart API: adds items
src/components/ProductCard.jsx - Product Card → Cart ID State: reads and sets ID
src/components/ProductCard.jsx - Product Card → Auth Check: checks sign-in
src/components/ProductCard.jsx - Product Card → HTTP Client: checks customer details
src/components/ProductCard.jsx - Product Details → Product API: loads product
src/components/ProductDetails.jsx - Product Details → Cart API: adds items
src/components/ProductDetails.jsx - Product Details → Cart ID State: reads and sets ID
src/components/ProductDetails.jsx - Product Details → Auth Check: checks sign-in
src/components/ProductDetails.jsx - Product Details → HTTP Client: checks customer details
src/components/ProductDetails.jsx - Cart View → Cart API: reads cart
src/components/CartCards.jsx - Cart View → Cart ID State: reads cart ID
src/components/CartCards.jsx - Checkout → Cart API: loads cart
src/pages/CheckoutPage.jsx - Checkout → Orders API: creates order
src/pages/CheckoutPage.jsx - Checkout → Auth API: loads profile
src/pages/CheckoutPage.jsx - Checkout → Customer API: loads customer
src/pages/CheckoutPage.jsx - Checkout → Address API: loads address
src/pages/CheckoutPage.jsx - Checkout → Auth Check: checks sign-in
src/pages/CheckoutPage.jsx - Order History → Orders API: loads orders
src/components/Orders.jsx - Order History → Auth Check: checks sign-in
src/components/Orders.jsx - Login and Signup → Auth API: authenticates
src/pages/Login.jsx - Login and Signup → Google Sign-In: offers sign-in
src/pages/Login.jsx - Google Sign-In → HTTP Client: uses client
src/components/GoogleSignIn.jsx - Profile → Auth API: loads profile
src/pages/Profile.jsx - Complete Profile → Auth API: updates account
src/pages/CompleteProfilePage.jsx - Complete Profile → Customer API: loads customer
src/pages/CompleteProfilePage.jsx