How ssahibsingh/react_e-commerce works
Project type and purpose
• This is a single‐page E‑Commerce frontend built with React.js.
• It provides product listing, cart management, checkout flow and user authentication pages, fetching data from a third‐party Fake Store API.
File structure
• Top‐level: package.json (npm scripts & dependencies), public/ (static assets, index.html)
• src/
• components/ – reusable UI pieces (Navbar, Footer, Products list, ScrollToTop)
• pages/ – route‐based views (Home, Product detail, Cart, Checkout, Login, Register, About, Contact, 404)
• redux/ – state management
– action/ – action creators
– reducer/ – handleCart & root reducer
– store.js – Redux store configuration
• index.js & main.jsx – app entry, ReactDOM.render & Router setup
• No server code: the “backend” is the Fake Store API
README for additional insights
• Tech stack: React, Redux, Bootstrap, Fake Store API
• Deployment: runs via npm start, hosted on Vercel
• Features: fully responsive, easy to integrate with any backend