This is a simple JavaScript web application that allows users to manage a list of products. Users can add new products, delete existing products, and view a list of products. The application uses Local Storage to persist the product data even after the page is refreshed or closed.
To run this application locally, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/pasify/product-cart.git
-
Open the index.html file in your web browser.
-
Run live server from the index.html file or your terminal
- Add new products with a name, price, and year.
- Delete products from the list.
- View a list of all products.
The main code files in this project are:
- index.html: The HTML structure of the web page.
- script.js: The JavaScript code that powers the application.
- styles.css: The CSS file for styling the web page.
- When you enter the product details and click the "Save" button, the product is added to the list and stored in Local Storage.
- Clicking the "Delete" button next to a product will remove it from the list and update the data in Local Storage.
- The product list is displayed on the page using JavaScript by reading data from Local Storage.
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix: git checkout -b feature-name.
- Make your changes and commit them: git commit -m 'Add new feature'.
- Push to your forked repository: git push origin feature-name.
- Create a pull request.