How mounikay845-source/ecommerce-frontend works
This is a browser-based storefront. Shoppers browse externally fetched products, filter or sort them, then add items to a locally persisted cart or wishlist; the cart supports quantity changes and a simulated checkout. Separate pages support signup, login, and password reset, while shared UI code handles theme, navigation, and logout. The README is empty, and the sampled source does not show page script wiring; the graph therefore omits uncertain page-to-script links and treats the Firebase files as a separate optional auth path.
Main entry points: app.js Catalog and search · cart.js Cart and wishlist · forgot.js Reset-link generation · session.js Auth session watcher
Components 20
Product catalog
- Catalog and search
scripts/app.js - Fake Store API
Shopping state
- Cart and wishlist
scripts/cart.js - Browser local storage
Account access
- Local account flows
scripts/auth.js - Reset-link generation
scripts/forgot.js - Password update
scripts/reset.js - Firebase setup
scripts/firebase.js - Auth session watcher
scripts/session.js - Firebase Auth
Pages and UI
- Storefront
index.html - Home page
home.html - Cart page
cart.html - Wishlist page
wishlist.html - Account pages
signup.html - Forgot page
forgot.html - Reset page
reset.html - Info pages
about.html - Shared interface behavior
scripts/ui.js
Other components
- Shopper
Connections 19
- Shopper → Storefront: browses
- Shopper → Cart page: opens
- Shopper → Wishlist page: opens
- Shopper → Account pages: opens
- Shopper → Forgot page: requests reset
- Shopper → Info pages: visits
- Catalog and search → Fake Store API: fetches products
- Catalog and search → Browser local storage: reads and writes
- Cart and wishlist → Browser local storage: reads and writes
- Local account flows → Browser local storage: reads and writes
- Reset-link generation → Browser local storage: reads users
- Password update → Browser local storage: updates users
- Shared interface behavior → Browser local storage: reads and writes theme
- Shared interface behavior → Shopper: redirects on logout
- Reset-link generation → Reset page: creates reset link
- Cart and wishlist → Shopper: shows checkout result
- Firebase setup → Firebase Auth: initializes
- Auth session watcher → Firebase Auth: observes session
- Auth session watcher → Shopper: redirects unauthenticated