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 π₯³