Giter Site home page Giter Site logo

pasify / product-cart Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.38 MB

Simple JavaScript Web App for Product Management: Manage your product list effortlessly with this user-friendly web application. Add, delete, and view product details while preserving data between sessions using Local Storage.

HTML 22.68% JavaScript 47.29% CSS 30.04%

product-cart's Introduction

My Product Cart web Application

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.

Getting Started

To run this application locally, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/pasify/product-cart.git
  2. Open the index.html file in your web browser.

  3. Run live server from the index.html file or your terminal

FEATURES

  • Add new products with a name, price, and year.
  • Delete products from the list.
  • View a list of all products.

Code Overview

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.

How It Works

  • 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.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix: git checkout -b feature-name.
  3. Make your changes and commit them: git commit -m 'Add new feature'.
  4. Push to your forked repository: git push origin feature-name.
  5. Create a pull request.

product-cart's People

Contributors

pasify avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.