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.
- latest node.js
.
โโโ lib
โย ย โโโ Cart.js
โโโ test
โ โโโ Cart.test.js
โโโ index.js
โโโ package.json
โโโ README.md
To setup this lib
locally, you can follow these commands from your terminal:
- Clone this repository:
git clone https://github.com/rizkiadi23/sirclo_shopping_cart
- Go into project directory and then install the dependencies by executing:
cd sirclo_shopping_cart && npm install
- Run the unit test to see the sample output as sample:
npm run test
- See the test result in your browser (*Optional)
open coverage/index.html
Feel free to add some feedback. Would really glad to hear from you ๐ฅณ