How putheanita/react-app works
SkinCare Co. is a client-side skincare boutique. Shoppers sign in or register, browse and filter the catalog, add products to a bag, enter delivery details, and complete checkout to receive an invoice; customer records and invoices are kept in browser storage. The app also includes customer-profile management, store-owner notifications, weather and promotion displays, and About and Contact pages. The excerpts show key routing and service calls; some feature links below are based on README documentation because their implementation was not sampled.
Main entry points: App.jsx App routing · notificationService.js Notification service · CartDrawer.jsx Shopping bag and checkout · useLoginController.js Authentication controller
Components 23
Application shell
- App routing
src/App.jsx
Storefront and checkout
- Home page
src/pages/Home.jsx - Catalog controller
src/controllers/useHomeController.js - Product catalog
src/data/Products.json - Storefront view
src/views/home/HomeView.jsx - Weather and clock
src/components/WeatherTimeBar.jsx - Pchum Ben banner
src/components/PchumBenBanner.jsx - Shopping bag and checkout
src/components/CartDrawer.jsx - Invoice modal
src/components/InvoiceModal.jsx
Accounts and customers
- Login page
src/pages/Login.jsx - Authentication controller
src/controllers/useLoginController.js - Authentication view
src/views/auth/LoginView.jsx - Customer records
src/services/customerService.js - Customer profile modal
src/components/CustomerProfileModal.jsx
Store operations
- Notification service
src/services/notificationService.js - Notification settings
src/config/notificationConfig.js - Admin notification panel
src/components/NotificationSidebar.jsx
Store information
- Founder profile
src/pages/abutUS/PutheanetaProfile.jsx - Contact page
src/pages/Contact.jsx
Other components
- Shopper
- Open-Meteo
- Browser localStorage
- Telegram
Connections 30
- Shopper → App routing: uses
README.md - App routing → Home page: routes to
src/App.jsx - App routing → Login page: routes to
src/App.jsx - App routing → Shopping bag and checkout: opens
src/App.jsx - App routing → Customer profile modal: opens
src/App.jsx - App routing → Admin notification panel: opens
src/App.jsx - App routing → Founder profile: routes to
src/App.jsx - App routing → Contact page: routes to
src/App.jsx - Home page → Catalog controller: uses
README.md - Home page → Storefront view: renders
README.md - Catalog controller → Product catalog: filters
src/controllers/useHomeController.js - Storefront view → Weather and clock: renders
src/views/home/HomeView.jsx - Storefront view → Pchum Ben banner: renders
src/views/home/HomeView.jsx - Weather and clock → Open-Meteo: fetches weather
README.md - Shopper → Shopping bag and checkout: checks out
README.md - Shopping bag and checkout → Invoice modal: opens
src/components/CartDrawer.jsx - Shopping bag and checkout → Notification service: notifies order
src/components/CartDrawer.jsx - Shopping bag and checkout → Browser localStorage: stores invoices
README.md - Login page → Authentication controller: uses
README.md - Login page → Authentication view: renders
README.md - Authentication controller → Customer records: reads and adds
src/controllers/useLoginController.js - Authentication controller → Notification service: notifies signup
src/controllers/useLoginController.js - Authentication controller → Browser localStorage: stores session
README.md - Customer profile modal → Browser localStorage: imports and exports
README.md - Admin notification panel → Customer records: manages records
src/components/NotificationSidebar.jsx - Admin notification panel → Notification settings: saves settings
src/components/NotificationSidebar.jsx - Admin notification panel → Notification service: sends test alert
src/components/NotificationSidebar.jsx - Notification service → Notification settings: loads settings
src/services/notificationService.js - Notification service → Telegram: sends alerts
README.md - Notification service → Browser localStorage: records activity
README.md