How errishabhvats-crypto/gocart works
GoCart is a Next.js multi-vendor commerce storefront with customer, vendor, and administrator interfaces. The customer path is product discovery, product details, cart review, and order viewing; vendor and admin areas provide separate store, product, order, and oversight screens. Redux Toolkit supplies client-side state for cart, products, addresses, and ratings. The repository excerpts show dummy data and placeholder mutation handlers, so they do not establish a live backend or persistent order, payment, or store workflow.
Main entry points: ProductCard.jsx Product Card · store.js Redux Store · (public)/page.jsx Home Discovery · cart/page.jsx Cart Review
Components 30
Customer Storefront
- Home Discovery
app/(public)/page.jsx - Store Browsing
app/(public)/shop/page.jsx - Vendor Storefront
app/(public)/shop/[username]/page.jsx - Product Details
app/(public)/product/[productId]/page.jsx - Customer Orders
app/(public)/orders/page.jsx
Shopping State
- Cart Review
app/(public)/cart/page.jsx - Order Summary
components/OrderSummary.jsx - Redux Store
lib/store.js - Cart State
lib/features/cart/cartSlice.js - Product State
lib/features/product/productSlice.js - Address State
lib/features/address/addressSlice.js - Rating State
lib/features/rating/ratingSlice.js
Vendor Workspace
- Create Store
app/(public)/create-store/page.jsx - Vendor Dashboard
app/store/page.jsx - Product Management
app/store/add-product/page.jsx - Manage Products
app/store/manage-product/page.jsx - Vendor Orders
app/store/orders/page.jsx
Admin Workspace
- Admin Dashboard
app/admin/page.jsx - Store Oversight
app/admin/stores/page.jsx - Store Approval
app/admin/approve/page.jsx - Coupon Management
app/admin/coupons/page.jsx
Shared UI
- Hero Categories
components/Hero.jsx - Latest Products
components/LatestProducts.jsx - Best Sellers
components/BestSelling.jsx - Product Card
components/ProductCard.jsx - Store Information
components/admin/StoreInfo.jsx - Orders Chart
components/OrdersAreaChart.jsx
Other components
- Customer
- Vendor
- Administrator
Connections 32
- Customer → Home Discovery: browses
README.md - Home Discovery → Hero Categories: renders
app/(public)/page.jsx - Home Discovery → Latest Products: renders
app/(public)/page.jsx - Home Discovery → Best Sellers: renders
app/(public)/page.jsx - Latest Products → Product Card: renders
components/LatestProducts.jsx - Best Sellers → Product Card: renders
components/BestSelling.jsx - Store Browsing → Product Card: renders
app/(public)/shop/page.jsx - Vendor Storefront → Product Card: renders
app/(public)/shop/[username]/page.jsx - Customer → Store Browsing: browses
README.md - Product Card → Product Details: links to
components/ProductCard.jsx - Customer → Cart Review: manages cart
README.md - Cart Review → Cart State: dispatches deletion
app/(public)/cart/page.jsx - Cart Review → Product State: reads products
app/(public)/cart/page.jsx - Cart Review → Order Summary: renders
app/(public)/cart/page.jsx - Order Summary → Address State: uses address
- Customer → Customer Orders: views orders
README.md - Redux Store → Cart State: registers reducer
lib/store.js - Redux Store → Product State: registers reducer
lib/store.js - Redux Store → Address State: registers reducer
lib/store.js - Redux Store → Rating State: registers reducer
lib/store.js - Vendor → Create Store: registers store
README.md - Vendor → Vendor Dashboard: views analytics
README.md - Vendor → Product Management: manages products
README.md - Vendor → Manage Products: manages products
README.md - Vendor → Vendor Orders: tracks orders
README.md - Administrator → Admin Dashboard: oversees platform
README.md - Administrator → Store Oversight: oversees stores
README.md - Administrator → Store Approval: reviews stores
README.md - Administrator → Coupon Management: manages coupons
- Admin Dashboard → Orders Chart: renders chart
app/admin/page.jsx - Store Oversight → Store Information: renders
app/admin/stores/page.jsx - Store Approval → Store Information: renders
app/admin/approve/page.jsx