├── .gitignore ├── bin ├── setup └── mkapplink.js ├── db ├── models │ ├── cart.test.js │ ├── guest.js │ ├── review.js │ ├── order.js │ ├── cart.js │ ├── order.test.js │ ├── product.js │ ├── index.js │ ├── user.js │ ├── user.test.js │ ├── oauth.js │ ├── review.test.js │ └── product.test.js ├── index.js └── seed.js ├── server ├── orders.tests.js ├── auth.filters.js ├── orders.js ├── users.js ├── api.js ├── review.js ├── users.test.js ├── start.js ├── products.js ├── auth.tst.js ├── cart.js ├── auth.js ├── reviews.test.js └── products.test.js ├── .profile ├── .DS_Store ├── app ├── .DS_Store ├── components │ ├── .DS_Store │ ├── Checkout.js │ ├── Footer.js │ ├── WhoAmI.jsx │ ├── App.js │ ├── Orders.js │ ├── Login.jsx │ ├── Product.js │ ├── Reviews.js │ ├── Header.js │ ├── Signup.js │ ├── Products.js │ ├── Jokes.test.jsx │ ├── Sidebar.js │ ├── WhoAmI.test.jsx │ ├── Login.test.jsx │ ├── Cart.js │ └── Jokes.jsx ├── containers │ ├── SidebarContainer.js │ ├── HeaderContainer.js │ ├── CheckoutContainer.js │ ├── OrdersContainer.js │ ├── ReviewsContainer.js │ ├── ProductsContainer.js │ ├── CartContainer.js │ └── ProductContainer.js ├── action-creators │ ├── orders.js │ ├── reviews.js │ ├── header.js │ ├── products.js │ └── cart.js ├── store.jsx ├── constants.js ├── reducers │ ├── header-reducer.js │ ├── orders-reducer.js │ ├── index.jsx │ ├── cart-reducer.js │ ├── reviews-reducer.js │ ├── products-reducer.js │ └── auth.jsx └── main.jsx ├── public ├── .DS_Store ├── favicon.ico ├── index.html ├── monitor.svg └── style.css ├── .babelrc ├── webpack.config.js ├── index.js ├── README.md ├── monitor.svg ├── package.json └── tests.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- 1 | mkapplink.js -------------------------------------------------------------------------------- /db/models/cart.test.js: -------------------------------------------------------------------------------- 1 | cart.test.js -------------------------------------------------------------------------------- /server/orders.tests.js: -------------------------------------------------------------------------------- 1 | orders.tests.js -------------------------------------------------------------------------------- /.profile: -------------------------------------------------------------------------------- 1 | # npm install --dev 2 | npm run build 3 | npm run seed -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkosowsk/build-a-box/HEAD/.DS_Store -------------------------------------------------------------------------------- /app/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkosowsk/build-a-box/HEAD/app/.DS_Store -------------------------------------------------------------------------------- /public/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkosowsk/build-a-box/HEAD/public/.DS_Store -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkosowsk/build-a-box/HEAD/public/favicon.ico -------------------------------------------------------------------------------- /app/components/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mkosowsk/build-a-box/HEAD/app/components/.DS_Store -------------------------------------------------------------------------------- /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", 4 | "es2015", 5 | "stage-2" 6 | ] 7 | } -------------------------------------------------------------------------------- /app/containers/SidebarContainer.js: -------------------------------------------------------------------------------- 1 | import Sidebar from '../components/Sidebar'; 2 | import { connect } from 'react-redux'; 3 | 4 | export default connect()(Sidebar); -------------------------------------------------------------------------------- /db/models/guest.js: -------------------------------------------------------------------------------- 1 | 2 | const Sequelize = require('sequelize') 3 | const db = require('APP/db') 4 | 5 | 6 | const Guest = db.define('guests', { 7 | 8 | }); 9 | 10 | module.exports = Guest -------------------------------------------------------------------------------- /app/action-creators/orders.js: -------------------------------------------------------------------------------- 1 | import { RECEIVE_ORDERS } from '../constants'; 2 | import axios from 'axios'; 3 | 4 | export const receiveOrders = orders => ({ 5 | type: RECEIVE_ORDERS, 6 | orders 7 | }); -------------------------------------------------------------------------------- /app/containers/HeaderContainer.js: -------------------------------------------------------------------------------- 1 | import Header from '../components/Header'; 2 | import { connect } from 'react-redux'; 3 | 4 | const mapStateToProps = (state) => { 5 | return { 6 | user: state 7 | } 8 | } 9 | 10 | export default connect(mapStateToProps)(Header); -------------------------------------------------------------------------------- /app/components/Checkout.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export default function (props) { 4 | 5 | const cart = props.selectedCart; 6 | console.log(cart) 7 | return ( 8 |