This simple shopping cart application built with React.js allows users to add items to the cart, remove them, and see their total.
- Add items to the cart
- Remove items from the cart
- View the total cost of items in the cart
- filter items from the view
- view the total quantity of products
-
Clone the repository:
git clone https://github.com/Binary-Shade/react-product-cart.git cd react-product-cart
-
Install dependencies:
npm install
-
Start the development server:
npm start
-
Open your browser and navigate to
http://localhost:3000
to see the application in action.
Browse through the list of available products. To add an item to your cart, click the "Add to Cart" button next to the desired product.
In the cart, each item has a "Remove" button next to it. Click this button to remove the item from your cart.
The total cost of the items in your cart is displayed at the bottom. This updates automatically as you add or remove items.
If you would like to contribute to this project, please follow these steps:
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature-name
) - Make your changes
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin feature/your-feature-name
) - Create a new Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions, feel free to open an issue or contact me at [email protected].
Happy hacking 🚀