How mkasirloo/digishop-nextjs works
DigiShop is a Persian RTL storefront whose main journey is product discovery, product detail, cart, shipping, and payment, with separate login, profile, and admin experiences. The graph preserves README-described capabilities and substantial indexed modules; some route internals were not sampled, so uncertain checkout transitions are dashed and uncited.
Main entry points: searchProducts.ts Product search · (main)/page.tsx Home discovery · products/page.tsx Product catalog · [id]/page.tsx Product detail
Components 27
Storefront
- Home discovery
app/(main)/page.tsx - Product catalog
app/(main)/products/page.tsx - Catalog filters
components/ProductsFilter.tsx - Product grid
components/ProductsGrid.tsx - Product card
components/ProductCard.tsx - Product detail
app/(main)/products/[id]/page.tsx - Search bar
components/UI/Header/SearchBar.tsx - Product search
app/lib/searchProducts.ts - Product data
app/data/products.ts - Category data
app/data/categories.ts - Brand data
app/data/brands.ts
Checkout
- Cart
app/(main)/(checkout)/cart/page.tsx - Shipping selection
app/(main)/(checkout)/shipping/page.tsx - Address data
app/data/addresses.ts - Payment
app/(main)/(checkout)/payment/page.tsx - Payment confirmation
app/(main)/(checkout)/payment-succeed/page.tsx
Accounts
- Login
app/(auth)/login/page.tsx - Verification
app/(auth)/verification/page.tsx - Auth state
app/stores/authStore.ts - Customer profile
app/(main)/profile - Profile orders
app/(main)/profile/orders/page.tsx - Order data
app/data/orders.ts
Store Operations
- Admin catalog
app/admin/products/page.tsx - Create product
app/admin/products/create/page.tsx - Product editor
app/admin/products/[id]/edit/EditForm.tsx - Product actions
app/lib/actions.ts
Other components
- Shopper
Connections 30
- Shopper → Home discovery: browses
README.md - Shopper → Product catalog: browses
README.md - Home discovery → Category data: renders categories
app/(main)/page.tsx - Home discovery → Brand data: renders brands
app/(main)/page.tsx - Product catalog → Catalog filters: renders filters
app/(main)/products/page.tsx - Product catalog → Product grid: renders grid
app/(main)/products/page.tsx - Product grid → Product card: renders cards
components/ProductsGrid.tsx - Search bar → Product search: searches
components/UI/Header/SearchBar.tsx - Product search → Product data: filters products
app/lib/searchProducts.ts - Product search → Category data: matches categories
app/lib/searchProducts.ts - Catalog filters → Product search: filters products
components/ProductsFilter.tsx - Shopper → Product detail: opens product
README.md - Product detail → Product data: reads product
app/(main)/products/[id]/page.tsx - Product detail → Brand data: reads brand
app/(main)/products/[id]/page.tsx - Shopper → Cart: shops
README.md - Cart → Shipping selection: continues checkout
- Shipping selection → Address data: reads addresses
app/(main)/(checkout)/shipping/page.tsx - Shipping selection → Payment: continues checkout
- Payment → Payment confirmation: confirms payment
- Shopper → Login: signs in
README.md - Login → Verification: links to
app/(auth)/login/page.tsx - Verification → Auth state: updates auth state
app/(auth)/verification/page.tsx - Shopper → Customer profile: manages account
README.md - Customer profile → Profile orders: views orders
- Profile orders → Order data: reads orders
- Admin catalog → Product search: searches products
app/admin/products/page.tsx - Create product → Product actions: submits action
app/admin/products/create/page.tsx - Product actions → Product data: uses product data
app/lib/actions.ts - Admin catalog → Product editor: links editor
- Product editor → Category data: uses categories
app/admin/products/[id]/edit/EditForm.tsx