Cream is a nodeJS Shopping Cart Rest API
$ git clone [email protected]:clickbox/c.r.e.a.m..git
$ cd c.r.e.a.m.
$ yarn install
$ npx jest --coverageThere is a config file for VS Code which enables the use of the VS Code Debugger tools for running test.
Available API routes for various cart functionality
| Operation | Route | Parameters |
|---|---|---|
| Add | /add | Name, Number |
| Remove | /remove | Name, Number |
| New Product | /newProduct | Name, Price, Quantity |
| Buy1Get1Free | /buy1Get1Free | Name, BuyQty, NumOff, Limit |
| BuyNGetMX | /buyNGetMX | Name, BuytQty, NumOff, PercentOff |
| BuyForSet | /buyForSet | Name, NumQty, SetPrice, Limit |