rizkiadi23 / sirclo_shopping_cart

A sample implementation of simple cart library with JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SIRCLO SHOPPING CART πŸ›’

1. Introduction 🎬

Built with JavaScript, this is an implementation of simple cart library which has some basic functions for instance:

  • add product to a cart
  • remove product in the cart
  • list all products in the cart.

2. Prerequisites πŸ’‘

  • latest node.js

3. Folder Structure πŸ“‚

.
β”œβ”€β”€ lib
β”‚   └── Cart.js
β”œβ”€β”€ test
β”‚   └── Cart.test.js
β”œβ”€β”€ index.js
β”œβ”€β”€ package.json
└── README.md

4. Installation βš™οΈ

To setup this lib locally, you can follow these commands from your terminal:

  1. Clone this repository:
git clone https://github.com/rizkiadi23/sirclo_shopping_cart
  1. Go into project directory and then install the dependencies by executing:
cd sirclo_shopping_cart && npm install
  1. Run the unit test to see the sample output as sample:
npm run test
  1. See the test result in your browser (*Optional)
open coverage/index.html

5. Contributing πŸ“

Feel free to add some feedback. Would really glad to hear from you πŸ₯³

About

A sample implementation of simple cart library with JavaScript


Languages

Language:JavaScript 100.0%