How abutalha2937/xshop.pk-ecommerce-full-stack-website works
XSHOP.PK is a database-driven Pakistani ecommerce platform. Shoppers discover catalog items, manage a guest or account cart, complete a server-priced COD checkout, and then view confirmation or track an order; customers can also manage accounts and wishlists. Separate product areas cover support and CMS content, while a protected admin console manages catalog, orders, inventory, and store settings. Prisma/SQLite is the shared persistence layer. The graph reflects README-described capabilities; some unsampled page and action wiring is not independently verified.
Main entry points: actions.ts Checkout · crud.ts Admin Mutations · cart.ts Cart · page.tsx Browse & Search
Components 24
Storefront
- Browse & Search
src/app/shop/page.tsx - Product Detail
src/app/product/[slug]/page.tsx - Product UI
src/components/products/PurchasePanel.tsx - Customer Account
src/app/account/page.tsx - Reviews
src/features/reviews/actions.ts - Predictive Search
src/app/api/search/route.ts
Commerce
- Cart
src/lib/cart.ts - Cart Endpoint
src/app/api/cart/route.ts - Checkout
src/features/checkout/actions.ts - Checkout Form
src/components/checkout/CheckoutForm.tsx - Confirmation & Tracking
src/app/track-order/page.tsx - Wishlist
src/features/wishlist/actions.ts
Admin Operations
- Admin Console
src/app/admin/(panel)/page.tsx - Admin Mutations
src/features/admin/crud.ts - Admin Auth
src/features/admin/auth.ts
Content & Support
- Support & Returns
src/app/support/page.tsx - Corporate Quotes
src/components/support/CorporateForm.tsx - Store Content
src/app/blog/page.tsx
Shared Services
- Customer Auth
src/features/auth/actions.ts - Prisma Database
- Store Settings
src/lib/settings.ts - Input Validation
src/lib/validation.ts
Other components
- Shopper
- Site Visitor
Connections 28
- Shopper → Browse & Search: browses
- Browse & Search → Product Detail: opens product
- Product Detail → Product UI: renders purchase
src/app/product/[slug]/page.tsx - Product UI → Cart: adds items
src/components/products/PurchasePanel.tsx - Shopper → Cart: manages cart
- Cart Endpoint → Cart: reads cart
src/app/api/cart/route.ts - Cart → Prisma Database: reads and writes
src/lib/cart.ts - Shopper → Checkout Form: submits order
- Checkout Form → Checkout: invokes checkout
- Checkout → Prisma Database: prices and persists
- Checkout → Store Settings: reads shipping rules
src/features/checkout/actions.ts - Checkout → Input Validation: validates input
src/features/checkout/actions.ts - Checkout → Confirmation & Tracking: creates order
- Shopper → Customer Account: manages account
- Customer Account → Customer Auth: updates profile
src/app/account/page.tsx - Customer Auth → Prisma Database: reads and writes
src/features/auth/actions.ts - Product Detail → Reviews: offers review
src/app/product/[slug]/page.tsx - Shopper → Support & Returns: requests support
- Shopper → Corporate Quotes: requests quote
- Site Visitor → Predictive Search: queries catalog
- Shopper → Wishlist: manages wishlist
- Admin Console → Admin Auth: authenticates
- Admin Console → Admin Mutations: manages store
- Admin Mutations → Prisma Database: updates records
src/features/admin/crud.ts - Admin Mutations → Admin Auth: requires authorization
src/features/admin/crud.ts - Admin Mutations → Store Content: maintains content
- Browse & Search → Prisma Database: reads catalog
- Store Content → Prisma Database: reads content