Giter Club home page Giter Club logo

0523-oop-midterm-project's Introduction

Fake shop

Original readme: https://github.com/henil-ciccc/0523-OOP-Midterm-Project#readme

Features

  • View a list of products with details including title, price, description, and image.
  • Add products to a shopping cart.
  • Calculate the total price of items in the shopping cart.
  • Place an order and view a summary of the products in the cart.

Project Structure

  • Product.js: Defines the Product class representing individual products.
  • ProductItem.js: Contains the ProductItem class responsible for rendering product information.
  • ProductList.js: Manages fetching and rendering the list of products.
  • Shop.js: Manages the entire application, fetching products, and rendering them.
  • ShoppingCart.js: Handles shopping cart functionality(adding, rendering).

Usage

  • Click the "Add to Cart" button on a product card to add it to the shopping cart.
  • The cart's total price will be updated as you add products.
  • Click the "Order Now" button to view a summary of the products in the cart. The summary will be displayed in the console.
TOTAL:  405.41

ShoppingCart.js:61 1: Fjallraven - Foldsack No. 1 Backpack, Fits 15 Laptops x1 109.95
2: Mens Casual Premium Slim Fit T-Shirts  x5 111.5
3: Mens Cotton Jacket x3 167.97
4: Mens Casual Slim Fit x1 15.99

0523-oop-midterm-project's People

Contributors

koyablue avatar shahco-ds 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.