How samio11/cartify_client works
Cartify is a Next.js e-commerce client. Shoppers browse the storefront and product catalog, authenticate, and use customer cart/account features; administrators manage catalog, users, carts, and payments through protected dashboards. The frontend delegates domain operations to server-side service wrappers that call the backend API. The graph includes documented product areas whose implementation was not sampled; their precise call paths are therefore not asserted.
Main entry points: dashboard/page.tsx Admin Dashboard · auth.service.ts Authentication · Home Home Sections · dashboard/page.tsx Customer Dashboard
Components 23
Storefront
- Home Page
src/app/(CommonLayout)/page.tsx - Home Sections
src/components/module/Home - Product Catalog
src/app/(CommonLayout)/products/page.tsx - Product Details
src/components/module/ProductDetails/ProductDetails.tsx - Reviews
src/services/review/review.services.ts
Identity
- Login Form
src/components/module/Auth/LoginForm.tsx - Registration Form
src/components/module/Auth/RegisterForm.tsx - User Context
src/context/UserContext.tsx - Role Route Guard
src/middleware.ts
Dashboards
- Admin Dashboard
src/app/(DashboardLayout)/admin/dashboard/page.tsx - Admin Management
src/components/module/Dashboard/AdminDashboardComponent - Customer Dashboard
src/app/(DashboardLayout)/customer/dashboard/page.tsx - Customer Cart
src/components/module/Dashboard/CustomerDashboardComponent/CartInfo/CartTable.tsx - Customer Profile
src/components/module/Dashboard/CustomerDashboardComponent/EditCustomerInfoModal.tsx
API Services
- Authentication
src/services/Auth/auth.service.ts - Product Service
src/services/product/product.services.ts - Category Service
src/services/category/category.services.ts - Cart Service
src/services/cart/cart.services.ts - Payment Service
src/services/payment/payment.services.ts - User Service
src/services/user/user.services.ts
Frontend Platform
- UI Primitives
src/components/ui/button.tsx
Other components
- Shopper
- Backend API
Connections 32
- Shopper → Home Page: browses
README.md - Home Page → Home Sections: renders
src/app/(CommonLayout)/page.tsx - Home Sections → Product Service: loads products
src/components/module/Home/HomeNewProducts.tsx - Home Sections → Category Service: loads categories
src/components/module/Home/HomeCategory.tsx - Home Sections → Reviews: loads reviews
src/components/module/Home/HomeReview.tsx - Shopper → Product Catalog: browses
README.md - Product Catalog → Category Service: fetches categories
src/app/(CommonLayout)/products/page.tsx - Product Catalog → Product Service: fetches products
src/app/(CommonLayout)/products/page.tsx - Shopper → Login Form: signs in
README.md - Shopper → Registration Form: registers
README.md - Login Form → Authentication: submits credentials
src/components/module/Auth/LoginForm.tsx - Registration Form → Authentication: registers account
src/components/module/Auth/RegisterForm.tsx - User Context → Authentication: loads identity
src/context/UserContext.tsx - Role Route Guard → Authentication: checks identity
src/middleware.ts - Shopper → Customer Dashboard: uses account
README.md - Customer Dashboard → User Context: reads user state
src/app/(DashboardLayout)/customer/dashboard/page.tsx - Customer Dashboard → Customer Profile: opens profile editor
src/app/(DashboardLayout)/customer/dashboard/page.tsx - Customer Profile → User Service: updates profile
src/components/module/Dashboard/CustomerDashboardComponent/EditCustomerInfoModal.tsx - Customer Dashboard → Customer Cart: manages cart
- Customer Cart → Cart Service: uses cart operations
- Shopper → Admin Dashboard: administers
README.md - Admin Dashboard → Product Service: loads products
src/app/(DashboardLayout)/admin/dashboard/page.tsx - Admin Dashboard → Payment Service: loads payments
src/app/(DashboardLayout)/admin/dashboard/page.tsx - Admin Dashboard → User Service: loads users
src/app/(DashboardLayout)/admin/dashboard/page.tsx - Admin Dashboard → Admin Management: manages records
- Product Service → Backend API: requests product data
src/services/product/product.services.ts - Category Service → Backend API: requests category data
src/services/category/category.services.ts - Authentication → Backend API: authenticates
src/services/Auth/auth.service.ts - Reviews → Backend API: requests reviews
src/services/review/review.services.ts - User Service → Backend API: requests user data
src/services/user/user.services.ts - Cart Service → Backend API: calls API
README.md - Payment Service → Backend API: calls API
README.md