A modern React e-commerce application built with Vite, React 18, Redux, and React Router v6.
- 🛍️ Product catalog with filtering and search
- 🛒 Shopping cart functionality
- 📱 Responsive design with Bootstrap 5
- 🎨 Styled with Styled Components
- 🔄 State management with Redux
- 🚀 Fast development with Vite
- Build Tool: Vite 7.1.0
- Framework: React 18.2.0
- Routing: React Router v6
- State Management: Redux with Redux Thunk
- Styling: Bootstrap 5 + Styled Components
- Icons: React Icons
- Node.js (version 16 or higher)
- npm or yarn
- Clone the repository:
git clone <repository-url>
cd react-tech-shop
- Install dependencies:
npm install
Start the development server:
npm run dev
The application will be available at http://localhost:3000
Build the application:
npm run build
Preview the production build:
npm run preview
This application is configured for deployment on Vercel with proper routing support.
To deploy to Vercel:
- Install Vercel CLI:
npm i -g vercel
- Deploy:
vercel
Or connect your GitHub repository to Vercel for automatic deployments.
Note: The application uses BrowserRouter with Vercel's rewrite rules for proper client-side routing.
src/
├── components/ # Reusable UI components
│ ├── CartPage/ # Cart-related components
│ ├── ContactPage/ # Contact page components
│ ├── HomePage/ # Home page components
│ └── ProductsPage/ # Product listing components
├── pages/ # Page components
├── store/ # Redux store configuration
│ ├── actions/ # Redux actions
│ └── reducers/ # Redux reducers
├── images/ # Static images
├── App.jsx # Main application component
└── index.jsx # Application entry point
This project was successfully migrated from Create React App to Vite. Key changes include:
- ✅ Updated to React 18 with
createRoot
API - ✅ Migrated to React Router v6 with
Routes
andRoute
components - ✅ Updated to Bootstrap 5 for better compatibility
- ✅ Upgraded all dependencies to latest stable versions
- ✅ Configured Vite for optimal development experience
- ✅ Fixed security vulnerabilities in dependencies
npm run dev
- Start development servernpm run build
- Build for productionnpm run preview
- Preview production build
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
This project is licensed under the MIT License.