A responsive, single‑page e‑commerce frontend for Urban Footwear built with React and Vite. Browse featured shoes, add them to your cart, and checkout—all while enjoying fast load times and a mobile‑first design.
- Demo
- Features
- Tech Stack & Prerequisites
- Getting Started
- Project Structure
- Usage
- Contributing
- License
- Author
-
Responsive Design
- Mobile-first UI that adapts seamlessly from phones to large desktops.
-
Product Showcase
- Interactive carousel powered by
react-responsive-carousel
. - Data loaded from local JSON files in
/src/data
.
- Interactive carousel powered by
-
Shopping Cart
- Add, remove, and update quantities with a single click.
- Persists across page reloads via
localStorage
.
-
Checkout Flow
- Simple form collects name, address, and email.
- Order confirmation popup on submit.
-
Scalable Architecture
- Hooks & Context API for state management.
- Modular CSS per component for maintainability.
- React v18.3.1
- Vite v4.3.4 (build tool with lightning‑fast HMR)
- react-responsive-carousel v3.2.23
- react-router-dom v7.5.0
- Node.js ≥16.x & npm ≥8.x
# Clone the repo
git clone https://github.com/<your-username>/shoe-website.git
cd shoe-website
# Install dependencies
npm install
Script | Description |
---|---|
npm run dev |
Start Vite development server (http://localhost:5173) |
npm run build |
Build for production into dist/ |
npm run preview |
Preview the production build locally |
npm run lint |
Run ESLint across all source files |
shoe-website/
├─ public/ # Static assets & images
├─ src/
│ ├─ assets/ # Banners, feature images, logos
│ ├─ components/
│ │ ├─ Header/ # Navbar & logo
│ │ ├─ Home/ # Landing page content
│ │ ├─ FeaturedProductsCarousel/
│ │ ├─ ProductPage/
│ │ ├─ DetailedProductPage/
│ │ ├─ Reviews/
│ │ ├─ Footer/
│ │ └─ (…)
│ ├─ data/ # `featured-products.json`, `products.json`, `reviews.json`
│ ├─ App.jsx
│ ├─ main.jsx
│ └─ index.css
├─ eslint.config.js
├─ index.html
├─ package.json
└─ vite.config.js
- Start Dev Server
npm run dev
- Build for Production
npm run build
- Preview Production Build
npm run preview
This project is licensed under the MIT License.