How niti-s/myntra-functional-clone works
This is a small client-side Myntra-style storefront: users browse a product catalog, add items to a cart, then review or remove items and see a price summary. The excerpts show the catalog and cart logic, product data, and browser-local persistence. The HTML files are present in the tree but were not sampled, so page-to-script wiring is not asserted; the documented add, delete, and price-calculation capabilities are represented through the code paths that implement them.
Main entry points: bag.js Cart display and actions · index.js Catalog and add-to-bag · bag.html Cart page · item.js Product data
Components 7
Storefront
- Catalog page
index.html - Catalog and add-to-bag
index.js
Cart
- Cart page
pages/bag.html - Cart display and actions
other js/bag.js
Data and state
- Product data
data/item.js - Browser bag storage
Other components
- Shopper
Connections 7
- Shopper → Catalog page: browses
README.md - Catalog and add-to-bag → Product data: renders products
index.js - Catalog and add-to-bag → Browser bag storage: reads and writes
index.js - Cart display and actions → Product data: looks up items
other js/bag.js - Cart display and actions → Browser bag storage: reads and writes
other js/bag.js - Cart display and actions → Cart page: renders cart
other js/bag.js - Shopper → Cart page: reviews cart
README.md