How kapade-lokesh/e-com works
Project type and purpose
• This is a React single-page e-commerce front-end built with Vite.
• It implements product browsing, user authentication, shopping cart, PayPal checkout, user profile and order history, plus an admin panel for managing products, orders, and users.
• It uses React Router for navigation, Redux Toolkit for state management, and the PayPal SDK for payment integration.
File structure
• Top-level:
• public + index.html → static assets and HTML shell
• src/ → application code
• vite.config.js → build/dev server config
• Under src/:
• main.jsx → React entry point
• App.jsx → root component & router setup
• Pages/ → route-level components (Home, Login, Register, Product pages, AdminHomePage, etc.)
• components/ → reusable UI modules, grouped by domain (Common, Layout, Cart, Products, Admin)
• redux/ → Redux Toolkit store & slices (authSlice, productSlice, cartSlice, checkoutSlice, orderSlice, adminProductSlice, adminOrders, adminSlice)
• External services implied by code: RESTful backend API, PayPal.
README
• Confirms React+Vite minimal template with HMR and ESLint.
• No backend code here – the app consumes external REST endpoints.