How abdelrahmansherif207/meem-market-ecommerce works
This is a localized Next.js storefront. Shoppers enter through catalog and search pages, discover products, manage a cart, authenticate, complete checkout and payment, then access account features such as orders, addresses, coupons, and reviews. The tree also shows merchandising, delivery-location, notification, and informational-page capabilities. The graph groups those product domains and includes the shared API layer; several feature implementations were not excerpted, so their connections are omitted or marked unverified rather than inferred as definite calls.
Main entry points: api.ts API client · ProductDetailsPage.tsx Product details · authService.ts Authentication · useCartActions.ts Cart management
Components 21
Storefront discovery
- Localized routes
src/app/[locale]/page.tsx - Home merchandising
src/features/home/HomePage.tsx - Catalog and categories
src/app/[locale]/category/[slug]/page.tsx - Product search
src/app/[locale]/search/page.tsx - Promotions and brands
src/features/promotions/components/PromotionDetailPage.tsx - Product details
src/features/products/components/ProductDetailsPage.tsx
Shopping and checkout
- Cart management
src/features/cart/hooks/useCartActions.ts - Checkout flow
src/features/checkout/components/CheckoutPage.tsx - Payment results
src/features/payment/components/PaymentPage.tsx - Delivery and pickup
src/features/location/components/DeliveryLocationSidebar.tsx
Identity and account
- Orders and invoices
src/features/profile/components/OrdersSection.tsx - Authentication
src/features/auth/services/authService.ts - Session state
src/features/auth/store/useAuthStore.ts - Profile and addresses
src/features/profile/components/ProfilePage.tsx
Customer engagement
- Wishlist
src/features/wishlist/hooks/useWishlistActions.ts - Coupons and vouchers
src/features/coupons/components/CouponsVouchersSection.tsx - Product and site reviews
src/features/site-reviews/services/siteReviewService.ts - Notifications
src/features/notifications/components/NotificationsPage.tsx
Shared platform
- API client
src/shared/lib/api.ts
Other components
- Shopper
- Commerce API
Connections 25
- Shopper → Localized routes: browses
- Localized routes → Home merchandising: renders
src/app/[locale]/page.tsx - Shopper → Catalog and categories: browses
- Shopper → Product search: searches
src/app/[locale]/search/page.tsx - Catalog and categories → API client: loads category data
src/app/[locale]/category/[slug]/page.tsx - Product search → API client: loads search data
- Shopper → Product details: views products
- Product details → Cart management: adds items
- Product details → Wishlist: updates wishlist
- Shopper → Promotions and brands: browses offers
- Shopper → Cart management: manages cart
- Cart management → Checkout flow: starts checkout
- Checkout flow → Payment results: submits payment
- Shopper → Authentication: signs in
- Authentication → API client: sends auth requests
src/features/auth/services/authService.ts - Authentication → Session state: updates session
- Session state → API client: logs out through
src/features/auth/store/useAuthStore.ts - Shopper → Profile and addresses: manages account
- Profile and addresses → Orders and invoices: views orders
- Shopper → Coupons and vouchers: claims offers
- Shopper → Product and site reviews: submits reviews
- Shopper → Notifications: views updates
- Shopper → Delivery and pickup: sets delivery
- Product and site reviews → API client: sends review requests
src/features/site-reviews/services/siteReviewService.ts - API client → Commerce API: requests data
src/shared/lib/api.ts