├── bin ├── setup ├── deploy-heroku.sh ├── build-branch.sh └── mkapplink.js ├── public ├── favicon.ico ├── images │ ├── 1.jpg │ ├── 2.jpg │ ├── 3.jpg │ ├── 4.jpg │ ├── 5.jpg │ ├── 6.jpg │ ├── 7.jpg │ ├── 8.jpg │ └── 9.jpg └── index.html ├── .babelrc ├── app ├── utils │ └── priceFormatter.js ├── components │ ├── Root.jsx │ ├── Home │ │ └── Home.jsx │ ├── NotFound.jsx │ ├── Navbar │ │ ├── UserIcon.jsx │ │ ├── SiteName.jsx │ │ ├── NavLink.jsx │ │ └── index.jsx │ ├── Authentication │ │ ├── WhoAmI.jsx │ │ ├── OAuth.jsx │ │ ├── Login.jsx │ │ └── Authenticate.jsx │ ├── Cart │ │ ├── CartItem.jsx │ │ ├── CheckoutButton.jsx │ │ └── Cart.jsx │ ├── SingleProduct │ │ ├── CartButton.jsx │ │ └── SingleProduct.jsx │ └── Products │ │ ├── Item.jsx │ │ └── AllProducts.jsx ├── reducers │ ├── index.jsx │ ├── auth.jsx │ ├── product.jsx │ ├── user.jsx │ └── order.jsx ├── store.jsx └── main.jsx ├── .gitignore ├── README.md ├── server ├── api.js ├── auth.filters.js ├── products.js ├── items.js ├── users.js ├── reviews.js ├── orders.js ├── start.js └── auth.js ├── db ├── models │ ├── order.js │ ├── review.js │ ├── product.js │ ├── item.js │ ├── index.js │ ├── user.js │ └── oauth.js ├── index.js └── seed.js ├── tests ├── server │ ├── orders.test.js │ ├── reviews.test.js │ ├── auth.test.js │ └── users.test.js ├── db │ ├── order.test.js │ ├── item.test.js │ ├── user.test.js │ ├── review.test.js │ └── product.test.js ├── components │ ├── WhoAmI.test.jsx │ ├── Login.test.jsx │ └── Cart.test.js └── reducers │ └── product.test.js ├── LICENSE ├── webpack.config.js ├── .eslintrc.js ├── index.js ├── gitWorkFlow.mdown ├── dev.js └── package.json /bin/setup: -------------------------------------------------------------------------------- 1 | mkapplink.js -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /public/images/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/1.jpg -------------------------------------------------------------------------------- /public/images/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/2.jpg -------------------------------------------------------------------------------- /public/images/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/3.jpg -------------------------------------------------------------------------------- /public/images/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/4.jpg -------------------------------------------------------------------------------- /public/images/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/5.jpg -------------------------------------------------------------------------------- /public/images/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/6.jpg -------------------------------------------------------------------------------- /public/images/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/7.jpg -------------------------------------------------------------------------------- /public/images/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/8.jpg -------------------------------------------------------------------------------- /public/images/9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gabrielwr/Climb-Shopper/HEAD/public/images/9.jpg -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", 4 | "es2015", 5 | "stage-2" 6 | ] 7 | } -------------------------------------------------------------------------------- /app/utils/priceFormatter.js: -------------------------------------------------------------------------------- 1 | `use strict` 2 | 3 | export default price => { 4 | price = price ? (price / 100) : 0 5 | return price.toLocaleString('en-US', { style: 'currency', currency: 'USD' }) 6 | } 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore all node_modules 2 | node_modules/* 3 | 4 | # ...except the symlink to ourselves. 5 | !node_modules/APP 6 | 7 | # Compiled JS 8 | public/bundle.js 9 | public/bundle.js.map 10 | 11 | # NPM errors 12 | npm-debug.log 13 | 14 | #Webstorm ignore 15 | .idea/ 16 | -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /app/components/Root.jsx: -------------------------------------------------------------------------------- 1 | import React from 'react' 2 | import Navbar from './Navbar/' 3 | 4 | /*------------------- COMPONENT -----------------*/ 5 | const Root = ({ children }) => ( 6 |{ pathname }The router gave me these props:
11 |
12 | { JSON.stringify( props, null, 2 ) }
13 |
14 | Lost? Here's a way home.
15 | ~ xoxo, bones. 16 |