All you need to do is push the project on GitHub, setup a GitHub page and now the webpage can be run normally. Can also be run locally using live server plugin
Normal HTML, CSS and Vanilla Javascript. A json file is for stored hard-coded array of objects as products.
User will click on the "Add to cart" button to add an item to the shopping cart. Each time an item is added, the counter number on the top right of the screen will increase as well. To access the shopping cart, click on the word "Total item in cart". Here you will see the list of items added by the user, with its quantities and the current total price.
You can change quantity number of an item , either by using arrow button or manually input the number on it. The total price will be updated according to the quantity number as well. And you can also remove an item from the shopping cart by click on the remove button too (and total price will be updated again).
Your product display should have (not limited to) product image, product name, product price: By using .innerHTML from cart.js and products.js
All products should be displayed when the page loads: By using .innerHTML from products.js and function fetchData from script.js
Using an ‘add to cart’ button, the user should be able to add the products to a shopping cart list: the page display the number of item added by the user on the top right of the screen. When click on the word "Total item in cart:", the shopping cart page appear. Refer to function handlePageView() in script.js
The shopping cart lists all products and displays a the total price: Refer to cart.js, fucntion displayCartItems() and localStorage
All products in cart screenshot: