Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
252 commits
Select commit Hold shift + click to select a range
f3d1950
importing libraries
MeriemBan Aug 12, 2019
e83c9f8
backend_second_draft
MeriemBan Aug 13, 2019
d96bda5
Update server.js
MeriemBan Aug 13, 2019
fcea403
App component changed and server file
MeriemBan Aug 13, 2019
3b5113b
react router dom package
MeriemBan Aug 13, 2019
279c5f2
BrowserRouter added to App component
MeriemBan Aug 13, 2019
30198bc
new component called Cart and username added to the signup
MeriemBan Aug 13, 2019
8d647d3
you can use redux now
MeriemBan Aug 13, 2019
4793de5
added a new component
ZeynepSarigul Aug 13, 2019
4abab2a
App Cart and index files have been changed
MeriemBan Aug 13, 2019
69161e8
changes on Cart component
MeriemBan Aug 13, 2019
8eaac52
white background
MeriemBan Aug 13, 2019
97f3d4b
NewItem changes
MeriemBan Aug 13, 2019
45d8203
I added signup.jsx and login.jsx
linx1x Aug 13, 2019
975b704
cart page changes
MeriemBan Aug 13, 2019
b22e67a
Items component has been created
MeriemBan Aug 13, 2019
95e2271
I updated the signup/login and created a pages folder inside src to p…
linx1x Aug 13, 2019
2780a87
css for signup and login
MeriemBan Aug 13, 2019
cab91b2
new-item css added
ZeynepSarigul Aug 13, 2019
5125f2f
change css addItem
ZeynepSarigul Aug 13, 2019
d48a21f
app component changed to display signup and login pages
MeriemBan Aug 13, 2019
ffceec0
changes on Login and Signup
MeriemBan Aug 14, 2019
530d8cf
I changed the app.jsx and the server.js so that it would show somethi…
linx1x Aug 14, 2019
0f684a9
css added to newitem
MeriemBan Aug 14, 2019
c5af53e
Vince DONT TOUCH
ZeynepSarigul Aug 14, 2019
9d0b8bc
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 14, 2019
039dc71
paths work now
MeriemBan Aug 14, 2019
b5e4579
new change
MeriemBan Aug 14, 2019
424db9d
I changed the login/signup so that the css would work on it, only nee…
linx1x Aug 14, 2019
6487c18
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 14, 2019
a132737
Fixed the css for login/signup/new-item
linx1x Aug 14, 2019
6e253b9
login and signup changes
MeriemBan Aug 14, 2019
c53690a
login changes
MeriemBan Aug 14, 2019
9de9295
login is working well
MeriemBan Aug 14, 2019
3c30c2c
new path for item details
MeriemBan Aug 14, 2019
bc31d78
fixed newItem.jsx
ZeynepSarigul Aug 14, 2019
07cdfc5
Items changed
MeriemBan Aug 14, 2019
8a747c1
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 14, 2019
d5d1bc4
Items rendering stuff
MeriemBan Aug 14, 2019
c07721a
Items
MeriemBan Aug 14, 2019
144a5db
Items and Item details
MeriemBan Aug 15, 2019
b8aba0d
Items is now ready
MeriemBan Aug 15, 2019
b4f00da
I added the className in Item.jsx
linx1x Aug 15, 2019
045a5c3
image files added
ZeynepSarigul Aug 15, 2019
0e656f2
I added more classNames and I reorganized the the divs into 4 section…
linx1x Aug 15, 2019
3f16663
images added
ZeynepSarigul Aug 15, 2019
9e39d81
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 15, 2019
77b6d41
item details
MeriemBan Aug 15, 2019
c08f11e
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 15, 2019
9f1f150
item details
MeriemBan Aug 15, 2019
a10d123
Items changed
MeriemBan Aug 15, 2019
c4e5090
now ItemDetails displays the item
MeriemBan Aug 15, 2019
6d23004
added navbar for now
ZeynepSarigul Aug 15, 2019
0373535
put my css into item.css
ZeynepSarigul Aug 15, 2019
3acf110
removed navbar from login/signup page
ZeynepSarigul Aug 15, 2019
7041a66
I added some css to items.css
linx1x Aug 15, 2019
8285a82
cart wip
MeriemBan Aug 15, 2019
d1c0516
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 15, 2019
bfd6787
changed the place of searchbutton and filter
ZeynepSarigul Aug 15, 2019
3690c93
items displayed in cart and removed after checkout
MeriemBan Aug 16, 2019
28b0304
changed searchbar
ZeynepSarigul Aug 16, 2019
1880baa
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 16, 2019
a7af81e
scroll down fixed
ZeynepSarigul Aug 16, 2019
40adbd1
added a video to our main page
ZeynepSarigul Aug 16, 2019
dd03714
fixed search bar
linx1x Aug 16, 2019
0392953
changed video size
ZeynepSarigul Aug 16, 2019
81da792
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 16, 2019
95d0c9f
changed size
ZeynepSarigul Aug 16, 2019
3311a23
item details has now the number of items in cart
MeriemBan Aug 16, 2019
84ad150
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 16, 2019
015a8fc
fixed the autocomplete background color
linx1x Aug 16, 2019
0d7175d
I remove the for the login/signup that was in main.css and moved it i…
linx1x Aug 16, 2019
3daaf72
logout button fixed
ZeynepSarigul Aug 16, 2019
14c7f9c
logout fixed
ZeynepSarigul Aug 16, 2019
ebaae26
fixed a bug
linx1x Aug 16, 2019
69988fe
changed autoplay to autoPlay in item.jsx line 111
linx1x Aug 16, 2019
741ef9b
fixed the navbar z-index
linx1x Aug 16, 2019
40836ca
Changed app.css item.css and items.jsx
linx1x Aug 16, 2019
7f36448
clearing cart and quantities added to the cart
MeriemBan Aug 16, 2019
04dd4dc
fixing conflicts
MeriemBan Aug 16, 2019
fad5af1
typo
MeriemBan Aug 16, 2019
cac5665
typo
MeriemBan Aug 16, 2019
4074783
typo
MeriemBan Aug 16, 2019
38d0a25
removing the invisible character on App.jsx
MeriemBan Aug 16, 2019
eff9602
className instead of class
MeriemBan Aug 16, 2019
a1a76eb
search bar styled
ZeynepSarigul Aug 16, 2019
3576db1
search bar changed
ZeynepSarigul Aug 16, 2019
b9d9ade
added an icon
ZeynepSarigul Aug 16, 2019
4697c3d
server changes
MeriemBan Aug 16, 2019
0af1647
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 16, 2019
1a1047a
Items changed
MeriemBan Aug 17, 2019
6ed414a
typo and clear cart button changed
MeriemBan Aug 17, 2019
9afc45a
quantities are updated on items collection on add to cart action
MeriemBan Aug 17, 2019
390189d
remove item from cart
MeriemBan Aug 17, 2019
6a6ad66
alert added when username or password are wrong when log in
MeriemBan Aug 17, 2019
6e6403d
cart changes
MeriemBan Aug 17, 2019
450c03b
add one to cart or remove one from cart
MeriemBan Aug 17, 2019
a3aa500
remove from cart added
MeriemBan Aug 17, 2019
6f81efb
continue shopping button should redirect user to all-items
MeriemBan Aug 17, 2019
26ec40d
login without typing /login
MeriemBan Aug 17, 2019
127b7a1
now the user can like an item
MeriemBan Aug 18, 2019
7934559
fix to cart
MeriemBan Aug 18, 2019
886d57a
I moved the css of the cart into a new file called Cart.css, and I st…
linx1x Aug 18, 2019
644a7b4
sold out is displayed now
MeriemBan Aug 18, 2019
0307fa6
cart
MeriemBan Aug 18, 2019
47e5bae
items
MeriemBan Aug 18, 2019
c91befb
I changed the cart render structure and added some classNames and Id.
linx1x Aug 18, 2019
45290be
fixed a conflict in cart.jsx
linx1x Aug 18, 2019
ff534ba
reviews added
ZeynepSarigul Aug 18, 2019
f753589
search button updted
ZeynepSarigul Aug 18, 2019
dc9c218
max and min filter fixed
ZeynepSarigul Aug 18, 2019
8d51d63
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 18, 2019
46ad726
Almost Done with the cart, I need to place the CheckOut Button somewhere
linx1x Aug 18, 2019
e14ef46
I placed the checkout button somewhere better
linx1x Aug 18, 2019
022ae6f
I changed the cart a little so it looks better
linx1x Aug 19, 2019
515e0c1
items
MeriemBan Aug 19, 2019
9b8f740
changed some css
linx1x Aug 19, 2019
ed43683
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 19, 2019
44b8113
fixed version of cart.jsx
linx1x Aug 19, 2019
5a43b16
button checkout on itemdetails is working now
MeriemBan Aug 19, 2019
e97c2d7
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 19, 2019
90b40db
filter fixed
ZeynepSarigul Aug 19, 2019
25fe5aa
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 19, 2019
3219215
filter fixed
ZeynepSarigul Aug 19, 2019
d29303b
Added some css and a subtotal span that needs to be done
linx1x Aug 19, 2019
c4c4116
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 19, 2019
5d9dd69
testing loggedIn
MeriemBan Aug 19, 2019
cb6eee6
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 19, 2019
874e5ff
after logout cart is cleared
MeriemBan Aug 19, 2019
ac0bac3
reviews updated
ZeynepSarigul Aug 19, 2019
b9c3022
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 19, 2019
711c591
server changed
MeriemBan Aug 19, 2019
13158d0
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 19, 2019
9ca3e52
review
MeriemBan Aug 19, 2019
1f2cbc7
review tests
MeriemBan Aug 19, 2019
9f57f44
Changed the stripe button to a custom one
linx1x Aug 19, 2019
12db3bf
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 19, 2019
db0564c
Reviews are working
ZeynepSarigul Aug 19, 2019
540ee2f
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 19, 2019
99bba26
sub total wip
MeriemBan Aug 19, 2019
5d7f370
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 19, 2019
f3fd713
subtotal and total in cart
MeriemBan Aug 19, 2019
b6066d3
change the stripe button
linx1x Aug 19, 2019
880836e
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 19, 2019
a292bdd
testing cart
MeriemBan Aug 19, 2019
8f74a60
testing cart
MeriemBan Aug 19, 2019
4fe525a
cart quantity and remove fixed
MeriemBan Aug 19, 2019
bd74432
Changed the payment layout
linx1x Aug 19, 2019
4b49804
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 19, 2019
198cfdd
now search item placeholder is hidden
MeriemBan Aug 19, 2019
c01eedf
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 19, 2019
af6d139
Did some details in cart.jsx and cart.css
linx1x Aug 19, 2019
0507282
reviews formatted
MeriemBan Aug 20, 2019
aa64e4f
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 20, 2019
b47a366
reviews formatted
MeriemBan Aug 20, 2019
8dff1ee
pagination started
MeriemBan Aug 20, 2019
fec8b4b
did more changes to the cart.jsx and cart.css
linx1x Aug 20, 2019
1b0c8eb
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 20, 2019
8d8d928
added some effect on payment button
linx1x Aug 20, 2019
f79ce18
new item-pics added
ZeynepSarigul Aug 20, 2019
c44b5f6
changed item details page
ZeynepSarigul Aug 20, 2019
75a39f0
pagination done
MeriemBan Aug 20, 2019
5bcaa15
cleanup in the code
MeriemBan Aug 20, 2019
62233c8
comments removed
MeriemBan Aug 20, 2019
e46664c
fixed the checkou and the shopping bag
linx1x Aug 20, 2019
1179457
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 20, 2019
5b569b3
shopping-cart icon added
ZeynepSarigul Aug 20, 2019
767f623
shopping cart icon added
ZeynepSarigul Aug 20, 2019
d7d8e2d
error fixed
ZeynepSarigul Aug 20, 2019
3f51b44
componentDidMount for items and cart
MeriemBan Aug 20, 2019
0fbf651
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 20, 2019
0dd0a54
moved the shopping bag higher up
linx1x Aug 20, 2019
e03f5e2
reviews are displayed right away
MeriemBan Aug 20, 2019
b66d865
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 20, 2019
c78e543
removed item details button
ZeynepSarigul Aug 20, 2019
0ec42fd
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 20, 2019
f213ded
made changes in cart again..
linx1x Aug 20, 2019
124d181
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 20, 2019
82790ba
component did mount cart changed
MeriemBan Aug 20, 2019
1988629
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 20, 2019
83314b4
I changed the display of all-items so they're all siblings and positi…
linx1x Aug 20, 2019
1fad00b
I fixed the wrapper position and the pagination is centered down now.
linx1x Aug 20, 2019
401c782
fixed for smaller screens
linx1x Aug 20, 2019
8d156f0
change the layout of all-items and the buttons css for the pageination
linx1x Aug 21, 2019
fda348b
I changed signup and login css to black and white
linx1x Aug 21, 2019
26c4067
if not loggedIn redirect user to login page
MeriemBan Aug 21, 2019
9a5737b
signup page redirect to / path after signup successful
MeriemBan Aug 21, 2019
8e30e43
signup update
MeriemBan Aug 21, 2019
a4e05a2
I removed the reviews borders so that the user can write long reviews
MeriemBan Aug 21, 2019
c58c738
filters
MeriemBan Aug 21, 2019
68ee2aa
made navbar dynamic,changes backgroundcolor
ZeynepSarigul Aug 21, 2019
9f77d52
navbar changes colors when scrolled down
ZeynepSarigul Aug 21, 2019
94b8b73
video has been fixed
ZeynepSarigul Aug 21, 2019
b63214f
navbar blend
linx1x Aug 21, 2019
8fa8f78
checkout page to add shipping address
MeriemBan Aug 21, 2019
15a3153
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 21, 2019
6993d89
shipping details and payment done
MeriemBan Aug 21, 2019
362b865
video added to the sell an item page
ZeynepSarigul Aug 21, 2019
f6416ee
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 21, 2019
544ca93
changed the position of sold out
linx1x Aug 21, 2019
20de857
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 21, 2019
96a0a4e
signup login page background image inserted
ZeynepSarigul Aug 21, 2019
0e2d7ba
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 21, 2019
23c6e34
pagination is back
linx1x Aug 21, 2019
9bd6ff7
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 21, 2019
2f42545
in stock filter fixed
MeriemBan Aug 21, 2019
48cee1d
conflicts fixed and in stock filter fixed
MeriemBan Aug 21, 2019
d65be91
fixed the autocomplete in login/signup
linx1x Aug 21, 2019
2bac4ad
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 21, 2019
7bfee88
Pagination is back, again
linx1x Aug 21, 2019
8d91965
in stock filter fixed
MeriemBan Aug 21, 2019
727f73c
in stock filter fixed
MeriemBan Aug 21, 2019
f466836
Items
MeriemBan Aug 21, 2019
ec02df1
pagination fix
MeriemBan Aug 21, 2019
02ff786
pagination back 3rd time
linx1x Aug 21, 2019
feb75a1
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 21, 2019
ea0ece1
tests on checkout component
MeriemBan Aug 21, 2019
0dee0e7
I changed the newItems
linx1x Aug 21, 2019
5a51864
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 21, 2019
a756b42
items
MeriemBan Aug 21, 2019
3b6bfe6
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 21, 2019
5071ec8
.. to access the css file that is in another file
MeriemBan Aug 21, 2019
df2d5b2
I fixed the filter button
linx1x Aug 21, 2019
4fcdcc3
Merge branch 'master' of https://github.com/MeriemBan/Alibay
linx1x Aug 21, 2019
46f4ace
item details page updated
ZeynepSarigul Aug 21, 2019
ff6f4c9
item details page updated
ZeynepSarigul Aug 21, 2019
947d02b
item details page modified
ZeynepSarigul Aug 21, 2019
9bb1b60
Remove the border of the buttons in itemsdetails.css
linx1x Aug 21, 2019
df990ff
shipping form style change
ZeynepSarigul Aug 21, 2019
cf1bce5
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 21, 2019
909acbb
componentdidmount for items component
MeriemBan Aug 22, 2019
7f8c860
changed item details page
ZeynepSarigul Aug 22, 2019
5f5a8a3
pictures updated
ZeynepSarigul Aug 22, 2019
03be0e4
uploads
MeriemBan Aug 22, 2019
50f0a37
review box modified
ZeynepSarigul Aug 22, 2019
bbc99fe
Merge branch 'master' of https://github.com/MeriemBan/Alibay
ZeynepSarigul Aug 22, 2019
1ce3d2a
itemdatails
MeriemBan Aug 22, 2019
e22ca42
Merge branch 'master' of github.com:MeriemBan/Alibay
MeriemBan Aug 22, 2019
7dd0de6
Update README.md
MeriemBan Sep 16, 2019
982b2f7
Update README.md
MeriemBan Sep 16, 2019
cbff561
Update README.md
MeriemBan Sep 16, 2019
1890aa4
Update README.md
MeriemBan Sep 16, 2019
5c0b4b2
Add files via upload
MeriemBan Sep 16, 2019
e2e0d97
Update README.md
MeriemBan Sep 16, 2019
7e8fd41
Update README.md
MeriemBan Sep 16, 2019
0edb623
Update README.md
MeriemBan Sep 16, 2019
4ba3350
Update README.md
MeriemBan Sep 16, 2019
249bbc7
Update README.md
MeriemBan Sep 16, 2019
89788a1
Update README.md
MeriemBan Sep 16, 2019
a8efcde
Update README.md
MeriemBan Sep 16, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
To start the server, run `nodemon server.js`
**Marketplace - Web App – team project**
---
- **Front-end :** JavaScript, React, Redux, CSS
- **Back-end :** Node.js, Express, MongoDB
- **Other tools:** Git, Github, Postman

Modify the `server.js` file to add endpoints
**Alibay is an online marketplace that makes available the following functionalities:**

The frontend code goes in the `/src` directory
- signup / login
- selling new item form
- browsing items / filtering by cost and stock availability
- purchasing items / processing payments through Stripe

*Project video available:* https://bit.ly/2kCBtFN

---
- signup / login
<img src="./images/alibay-signup-login.png" height="350px" width="600px">

- selling new item form
<img src="./images/alibay-selling-new-item.png" height="350px" width="600px">

- browsing items / filtering by cost and stock availability
<img src="./images/alibay-browsing-items.png" height="350px" width="600px">
<img src="./images/alibay-item-details.png" height="350px" width="600px">

- purchasing items / processing payments through Stripe
<img src="./images/alibay-cart2.png" height="320px" width="600px">
<img src="./images/alibay-shipping-details.png" height="300px" width="600px">
<img src="./images/alibay-payment.png" height="300px" width="600px">
252 changes: 252 additions & 0 deletions backend_frontend_contract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,252 @@
#Users

- User object

```
{
id: integer,
username: string,
password: string
}
```

<!-- ## **GET /users**

Returns all users in the system.
**Content:**

```
{
users: [
{<user_object>},
{<user_object>},
{<user_object>}
]
}
```

## **GET /users/:id**

Returns the specified user. -->

## **GET /users/:id/orders**

Returns all Orders associated with the specified user.

- **Headers**
cookie: sessionId
**Content:**

```
{
orders: [
{<order_object>},
{<order_object>},
{<order_object>}
]
}
```

## **POST /signup**

Creates a new User and returns the new object.

- **Data Params**

```
{
id: integer,
username: string,
password: string
}
```

## **POST /login**

<!-- Creates a new User and returns the new object. -->

<!-- - **Data Params**

```
{ id: integer
username: string,
password: string,
email: string
}
``` -->

#items

- item object

```
{
id: integer
name: string
cost: float(2)
available_quantity: integer
description: string
filePath: string
}
```

## **GET /items**

Returns all items in the system.
**Content:**

```
{
items: [
{<item_object>},
{<item_object>},
{<item_object>}
]
}
```

## **GET /items/:id**

Returns the specified item.

- **Headers**
cookie: sessionId
**Content:** `{ <item_object> }`

## **GET /items/:id/orders**

Returns all Orders associated with the specified item.

- **Headers**
cookie: sessionId
**Content:**

```
{
orders: [
{<order_object>},
{<order_object>},
{<order_object>}
]
}
```

## **POST /items**

Creates a new item and returns the new object.

- **Data Params**

```
{
id: integer
name: string
cost: float(2)
available_quantity: integer
description: string
filePath: string
}
```

**Content:** `{ <item_object> }`

#Orders

- Order object

```
{
id: integer
user_id: <user_id>
total: float(2)
items: [
{
item: <item_id>,
quantity: integer
},
{
item: <item_id>,
quantity: integer
},
{
item: <item_id>,
quantity: integer
},
]
created_at: datetime(iso 8601)
updated_at: datetime(iso 8601)
}
```

## **GET /orders**

Returns all orders in the system.

**Content:**

```
{
orders: [
{<order_object>},
{<order_object>},
{<order_object>}
]
}
```

## **GET /orders/:id**

Returns the specified order.

- **URL Params**
_Required:_ `id=[integer]`
- **Data Params**
None
- **Headers**
cookie: sessionId
**Content:** `{ <order_object> }`

## **GET /orders/:id/items**

Returns all items associated with the specified order.

- **Headers**
cookie: sessionId
**Content:**

```
{
items: [
{<item_object>},
{<item_object>},
{<item_object>}
]
}
```

## **GET /orders/:id/user**

Returns all Users associated with the specified order.

- **Headers**
cookie: sessionId
- **Success Response:** `{ <user_object> }`

## **POST /orders**

Creates a new Order and returns the new object.

- **Data Params**

```
{
user_id: <user_id>
item: <item_id>,
quantity: integer
}
```

- **Headers**
Content-Type: application/json
- **Success Response:**
**Content:** `{ <order_object> }`
Binary file added images/1-skirt.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/1179117_in_pp.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/20-karat-gold-earrings.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Almeida-dress.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/aaaaa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/alibay-browsing-items.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/alibay-cart1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/alibay-cart2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/alibay-item-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/alibay-payment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/alibay-selling-new-item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/alibay-shipping-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/alibay-signup-login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ast_days_of_summer.mp4
Binary file not shown.
Binary file added images/beige dress.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/beigedress2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blackshoes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blazer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bluedress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/bluedress.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/brownblazer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/butterflyshoes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dodo bar dress.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/dress.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ethnicshoes.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/farmer.mov
Binary file not shown.
Binary file added images/glitterdress.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/glitterdress2.jpg
Binary file added images/heart.png
Binary file added images/lantern dress.jpg
Binary file added images/leathersandals.jpg
Binary file added images/metallicMididress.jpg
Binary file added images/midi dress.jpg
Binary file added images/militaryjumpsuit.png
Binary file added images/militarypant1.jpg
Binary file added images/militarypant2.jpg
Binary file added images/niceshoe.jpg
Binary file added images/one-shoulder-dress.jpg
Binary file added images/one-shoulder.jpg
Binary file added images/patent-leather-shoes.jpg
Binary file added images/patterndress.png
Binary file added images/printed-denim-acket.jpg
Binary file added images/printed-jacket.jpg
Binary file added images/printed-shorts.jpg
Binary file added images/self-portrait.jpg
Binary file added images/self-portrait2.jpg
Binary file added images/sequineddress.jpg
Binary file added images/store.jpg
Binary file added images/stores.jpg
Binary file added images/suede-mini-skirt.jpg
Binary file added images/yellowflower .png
24 changes: 20 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,36 @@
"css-loader": "^2.1.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"react": "16.6.0",
"react-dom": "16.6.0",
"react": "^16.6.0",
"react-dom": "^16.6.0",
"style-loader": "^0.23.1",
"webpack": "^4.29.0",
"webpack-cli": "^3.2.1",
"webpack-dev-server": "^3.1.14"
},
"dependencies": {
"@babel/plugin-proposal-class-properties": "^7.3.4",
"auth0": "^2.19.0",
"chokidar": "^3.0.0",
"redux": "^4.0.4",
"react-redux": "6.0.1",
"cookie-parser": "^1.4.4",
"express": "^4.16.4",
"file-system": "^2.2.2",
"jquery": "^3.4.1",
"mongodb": "^3.3.0-beta2",
"multer": "^1.4.2",
"prop-types": "^15.7.2",
"react-icons": "^3.7.0",
"react-paginate": "^6.3.0",
"react-pagination": "^1.0.0",
"react-redux": "6.0.1",
"react-router-dom": "^5.0.1",
"react-router-redux": "^4.0.8",
"react-stripe-checkout": "^2.6.3",
"redux": "^4.0.4",
"sha1": "^1.1.1",
"shelljs": "^0.8.3",
"stripe": "^7.7.0",
"video-react": "^0.14.1",
"webpack-inject-plugin": "^1.5.0",
"ws": "^7.0.0"
}
Expand Down
15 changes: 6 additions & 9 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<head>
<meta charset="utf-8" />
<title>Fullstack dev!</title>
</head>

<body>
<div id="root">
</div>
</body>
</head>

<body>
<div id="root"></div>
</body>
</html>
Loading