Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanjsanj/reactjs-shop
https://github.com/sanjsanj/reactjs-shop
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/sanjsanj/reactjs-shop
- Owner: sanjsanj
- Created: 2015-06-15T07:06:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-06-17T09:53:10.000Z (over 9 years ago)
- Last Synced: 2024-05-16T01:13:56.342Z (6 months ago)
- Language: JavaScript
- Size: 531 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#reactjs-shop
[![Build Status](https://travis-ci.org/sanjsanj/reactjs-shop.svg?branch=master)](https://travis-ci.org/sanjsanj/reactjs-shop)
To run app:
```
$ npm install
$ npm start
$ open index.html
```To run tests:
```
$ npm install
$ npm test
```Assumptions:
- Client wants all instances of a particular product to be removed from the cart when the user chooses remove
- Since there are no persisted user details every order has a £5 discount applied as if it were a first order
- Tier II and III discounts are compounded so if you spend more than £75 and have bought at least one footwear item you get £15 discount plus the £10 discount for spending more than £50 plus the £5 discount for a first order bringing the total discount to £30
Issues:
[StackOverflow - adding the right items to the cart](http://stackoverflow.com/questions/30865389/cart-not-adding-correct-item-in-react-js)
[Jest does not work with node 0.12](https://github.com/facebook/jest/issues/243)
Todo:
- Products other than the first one can not be added to cart when out of stock
- Change footwear test in discounts to look for string matcher