A React-based e-commerce application for browsing, searching, and purchasing products.
- Product listing and details
- Shopping cart management
- User authentication
- Order placement and history
- Responsive design
- Node.js (v14+)
- npm or yarn
git clone https://github.com/your-username/ecommerce-product-app.git
cd ecommerce-product-app
npm install
npm start
The app will be available at http://localhost:3000
.
This project uses Jest and React Testing Library for unit testing.
npm test
// src/components/ProductCard.test.js
import { render, screen } from '@testing-library/react';
import ProductCard from './ProductCard';
test('renders product name', () => {
render(<ProductCard name="Test Product" price={19.99} />);
expect(screen.getByText(/Test Product/i)).toBeInTheDocument();
});
src/
components/
pages/
tests/
App.js
index.js
This project is licensed under the MIT License.