This is a simple e-commerce product page built using React, JavaScript, HTML, and CSS. It provides a learning opportunity for developers by intentionally introducing bugs and challenges that need to be fixed to create a fully functioning prodcut page.
This project simulates an e-commerce product page where users can:
However, the project contains intentional bugs that provide a good learning opportunity for new developers. Debugging these will hlep you improve your problem-solving, DOM manipulation, and responsive desgn skills.
Fork this repository.
Clone the forked repository:
git clone https://github.com/<your-username>/ecommerce-product-page.git
Navigate to the project directory:
cd ecommerce-product-page
Create a new branch:
git checkout -b <your_branch_name>
Install the required dependencies:
npm install
Start the development server:
npm start
This will run the app in the development mode. Open http://localhost:3000 to view it in your browser.
Make changes.
Stage your changes and commit:
git add .
git commit -m "<your_commit_message>"
Push your local commits to the remote repo:
git push -u origin <your_branch_name>
Create a Pull-Request
to develop!
ecommerce-product-page/
│
├── public/
│ ├── index.html # HTML template for the app
│
├── src/
│ ├── components/
│ │ ├── ProductCard.js # Component for displaying a single product
│ │ ├── Cart.js # Component for displaying the shopping cart
│ │
│ ├── App.js # Main app component
│ ├── index.js # Entry piont for the app
│ ├── styles.css # Styling for the components
│
├── package.json # Project configuration and dependencies
└── README.md # Documentation for the project
Kindly follow CONTRIBUTING.md for contributing to the repo.
This project is licensed under the MIT License. You are free to use, modify, and distribute this code.