How kommineniravindra/e-commerce-typescript works
This is a React food-ordering storefront. The visible flow is browsing categorized products, adding items to a cart, completing checkout, and viewing saved orders. Redux state supplies product, cart, user, and order data; the cart and order history persist through browser local storage, and checkout can send a confirmation email. The README describes only the Vite template, so routing and other App-level wiring are not inferred from it; unsampled pages are included based on the source tree, with uncertain links omitted.
Main entry points: Store.ts Product and order state · Pagination.tsx Pagination · Veg.tsx Vegetarian menu · NonVeg.tsx Non-veg menu
Components 18
Application shell
- React entry
src/main.tsx - App
src/App.tsx - Navigation
src/UI/Navbar.tsx - Footer
src/UI/Footer.tsx
Product catalog
- Vegetarian menu
src/ProductComponents/Veg.tsx - Non-veg menu
src/ProductComponents/NonVeg.tsx - Drinks menu
src/ProductComponents/Drinks.tsx - Snacks menu
src/ProductComponents/Snacks.tsx - Pagination
src/ProductComponents/Pagination.tsx
Cart and orders
- Product and order state
src/Store.ts - Cart and checkout
src/UI/Cart.tsx - Order history
src/UI/Order.tsx
Informational pages
- Home page
src/UI/Home.tsx - About page
src/UI/Aboutus.tsx - Contact page
src/UI/Contactus.tsx
Other components
- Customer
- Browser local storage
- EmailJS service
Connections 13
- React entry → App: renders
src/main.tsx - Vegetarian menu → Product and order state: reads products; dispatches cart
src/ProductComponents/Veg.tsx - Non-veg menu → Product and order state: reads products; dispatches cart
src/ProductComponents/NonVeg.tsx - Drinks menu → Product and order state: reads products; dispatches cart
src/ProductComponents/Drinks.tsx - Vegetarian menu → Pagination: uses
src/ProductComponents/Veg.tsx - Non-veg menu → Pagination: uses
src/ProductComponents/NonVeg.tsx - Drinks menu → Pagination: uses
src/ProductComponents/Drinks.tsx - Cart and checkout → Product and order state: reads and dispatches
src/UI/Cart.tsx - Order history → Product and order state: reads orders
src/UI/Order.tsx - Navigation → Product and order state: reads cart
src/UI/Navbar.tsx - Product and order state → Browser local storage: persists state
src/Store.ts - Cart and checkout → EmailJS service: sends receipt
src/UI/Cart.tsx - Customer → App: uses storefront