How dhimanarpit2-cyber/ecommercewithai works
This is a Next.js beauty-commerce storefront. Shoppers browse a product catalog, inspect products, manage a cart or wishlist, sign in, and submit a checkout form; the sampled checkout only shows a local confirmation, not a payment or order backend. The tree also includes editorial, collection, contact, and informational pages. Some routes and page composition are unsampled, so their internal wiring is not inferred.
Main entry points: StoreContext.jsx Cart and wishlist state · page.js Cart · AuthContext.jsx User session state · products.js Product catalog data
Components 19
Storefront
- Home
src/app/page.js - Editorial sections
src/components/sections - Info pages
src/app/about/page.js - Contact inquiry
src/app/contact/page.js
Product discovery
- Product catalog data
src/data/products.js - Shop and filters
src/app/shop/page.js - Product search
src/components/SearchModal.jsx - Product detail
src/app/shop/[id]/page.js - Collections
src/app/collections/page.js
Shopping flow
- Cart
src/app/cart/page.js - Wishlist
src/app/wishlist/page.js - Checkout
src/app/checkout/page.js - Cart and wishlist state
src/context/StoreContext.jsx - Browser local storage
Identity
- Sign-in page
src/app/auth/page.js - Sign-in form
src/app/auth/DoubleSliderAuth.jsx - User session state
src/context/AuthContext.jsx - Demo login API
src/app/api/auth/login/route.js
Other components
- Shopper
Connections 23
- Shopper → Home: visits
- Home → Editorial sections: renders
- Shopper → Shop and filters: browses
- Shopper → Product search: searches
- Product search → Product catalog data: filters
- Shop and filters → Product catalog data: filters
- Shopper → Collections: browses
- Shopper → Product detail: views
- Shopper → Cart: manages
- Shopper → Wishlist: manages
- Cart → Cart and wishlist state: updates
- Wishlist → Cart and wishlist state: updates
- Cart and wishlist state → Product catalog data: resolves products
- Cart and wishlist state → Browser local storage: reads and writes
- Cart → Checkout: proceeds to
- Checkout → Cart and wishlist state: reads cart; clears on submit
- Shopper → Sign-in page: opens
- Sign-in page → Sign-in form: renders
- Sign-in form → User session state: calls login
- User session state → Demo login API: posts credentials
- User session state → Browser local storage: reads and writes
- Shopper → Contact inquiry: submits inquiry
- Shopper → Info pages: reads