How 123onlywork/stroymat_map_front works
Stroymat is a Next.js commerce application: customers discover products, authenticate, manage a cart and favorites, place orders, and leave reviews; administrators manage catalog data, orders, and reviews. The graph separates storefront stages, admin operations, authentication, and the shared service/state layer. Several routes and payment-related flows are visible only in the file tree, so their internal call relationships are omitted; edges use only relationships evidenced by sampled source or the source index.
Main entry points: api.interceptor.ts HTTP Client · Auth.tsx Sign In / Register · Checkout.tsx Checkout · auth.service.ts Authentication Service
Components 26
Storefront
- Home
src/app/Home.tsx - Product Discovery
src/app/explorer/ProductExplorer.tsx - Category Page
src/app/category/[slug]/page.tsx - Product Detail
src/app/product/[slug]/Product.tsx - Product Reviews
src/app/product/[slug]/product-reviews/ProductReviews.tsx
Customer Commerce
Administration
- Admin Dashboard
src/app/admin/Dashboard.tsx - Category Management
src/app/admin/categories/useAdminCategories.ts - Product Management
src/app/admin/products/useAdminProducts.ts - Order Management
src/app/admin/orders/useAdminOrders.ts - Review Management
src/app/admin/reviews/useAdminReviews.ts
Authentication
- Sign In / Register
src/app/(customer)/auth/Auth.tsx - Route Guard
src/providers/auth-provider/AuthProvider.tsx
Services and State
- Payment Service
src/services/payment.service.ts - Authentication Service
src/services/auth/auth.service.ts - HTTP Client
src/api/api.interceptor.ts - Product Service
src/services/product/product.service.ts - Category Service
src/services/category.service.ts - Order Service
src/services/order.service.ts - Review Service
src/services/review.service.ts - Application State
src/store/store.ts
Other components
- Customer
- Commerce API
Connections 28
- Customer → Home: opens
- Customer → Product Discovery: browses
- Customer → Product Detail: views
- Customer → Sign In / Register: authenticates
- Customer → Cart: manages
- Customer → Checkout: checks out
- Customer → Favorites: saves items
- Customer → My Orders: tracks
- Customer → Product Reviews: reviews
- Product Discovery → Application State: reads filters
- Route Guard → Sign In / Register: renders
src/providers/auth-provider/AuthProvider.tsx - Route Guard → Application State: dispatches actions
src/providers/auth-provider/AuthProvider.tsx - Sign In / Register → Application State: dispatches actions
src/app/(customer)/auth/Auth.tsx - Sign In / Register → Authentication Service
- Authentication Service → HTTP Client: sends requests
src/services/auth/auth.service.ts - HTTP Client → Authentication Service: refreshes tokens
src/api/api.interceptor.ts - Category Management → Category Service: requests categories
src/app/admin/categories/useAdminCategories.ts - Review Management → Review Service: loads reviews
src/app/admin/reviews/useAdminReviews.ts - Product Service → HTTP Client: sends requests
src/services/product/product.service.ts - Category Service → HTTP Client: sends requests
src/services/category.service.ts - Order Service → HTTP Client: sends requests
src/services/order.service.ts - Review Service → HTTP Client: sends requests
src/services/review.service.ts - HTTP Client → Commerce API: sends HTTP requests
- Checkout → Payment Service
- Checkout → Order Service
- Product Management → Product Service
src/app/admin/products/useAdminProducts.ts - Order Management → Order Service
src/app/admin/orders/useAdminOrders.ts - Review Management → Review Service: loads reviews
src/app/admin/reviews/useAdminReviews.ts