How hamed-hasan/shofy-fashion-ecommerce-client works
Shofy is the customer-facing Next.js storefront for a broader e-commerce system; the supplied tree contains the client, not the separately documented Express/MongoDB admin/backend. A shopper browses or searches products, opens product details, and can review items, manage a cart, and proceed through checkout; authentication and account pages support those actions. Catalog, cart, wishlist, comparison, orders, coupons, and reviews are represented in the client. README capabilities such as Stripe, email verification, and Google sign-in are documented, but their complete runtime wiring is not shown in the excerpts.
Main entry points: authSlice.js Authentication state · apiSlice.js API client · productApi.js Product API · use-search-form-submit.js Search navigation
Components 19
Storefront experience
- Store pages
src/pages - Navigation header
src/layout/headers/header-2.jsx - Search navigation
src/hooks/use-search-form-submit.js - Product search
src/pages/search.jsx - Product details
src/components/product-details/product-details-area.jsx - Editorial content
src/pages/blog.jsx
Shopping workflows
- Cart and checkout
src/components/cart-wishlist/cart-area.jsx - Wishlist and compare
src/components/cart-wishlist/wishlist-area.jsx - Product reviews
src/components/forms/review-form.jsx - Coupons
src/components/coupon/coupon-area.jsx
Identity and account
- Account and orders
src/components/my-account/profile-area.jsx - Authentication pages
src/pages/login.jsx - Authentication state
src/redux/features/auth/authSlice.js
Client data and state
- API client
src/redux/api/apiSlice.js - Product API
src/redux/features/productApi.js - Review API
src/redux/features/reviewApi.js - Cart state
src/redux/features/cartSlice.js
Other components
- Shopper
- Shofy backend
Connections 16
- Shopper → Store pages: browses
- Navigation header → Search navigation: submits search
src/layout/headers/header-2.jsx - Search navigation → Product search: routes to
src/hooks/use-search-form-submit.js - Product search → Product API: loads products
src/pages/search.jsx - Product details → Product API: loads product
src/pages/product-details/[id].jsx - Product reviews → Review API: submits review
src/components/forms/review-form.jsx - Review API → API client: uses client
src/redux/features/reviewApi.js - Product API → API client: uses client
src/redux/features/productApi.js - API client → Shofy backend: sends requests
src/redux/api/apiSlice.js - Cart and checkout → Cart state: manages cart
- Account and orders → Authentication state: uses identity
- Authentication pages → Authentication state: updates session
- Authentication state → Shofy backend: authenticates
- Shopper → Cart and checkout: shops
- Shopper → Wishlist and compare: saves items
- Shopper → Editorial content: reads