Nozama - Back End API

alt text

alt text

alt text

/products


{"products":[{"_id":"5c3457f3e7179a7d1240e3bd","products":[{"products":[{"title":"Peach","price":1,"imageLink":"https://i.imgur.com/XWywUHL.jpg","__v":0}],"_id":"5c3452ebe7179a7d1240dff6"},{"products":[{"_id":"5c3452ebe7179a7d1240dff6","products":[{"__v":0,"imageLink":"https://i.imgur.com/jnCJL9l.jpg","price":1,"title":"Apple","createdAt":"2019-01-08T04:33:07.840Z","updatedAt":"2019-01-08T04:33:07.840Z","_id":"5c342803ce90953da489943f"}]}],"_id":"5c3456fbe7179a7d1240e2ef"}]}]}

Team Project By:

Aimee Ramirez | Ash Trull | Christian Migncca | Will Britton

Introduction

Welcome to the Back End repository for our third project with GA, our team project. We all learned quite a lot throught the process. It was a great team effort and we look forward to continue working to really polish it up.

Our prompt was to build Nozama, a site similar to Amazon. We decided to act as though we were amazon rolling our a new food shopping piece of their site since they accquired Whole Foods. We named it Peach.

Relevant Links

Routes

Action Method URL Controller Action
User Sign Up POST /sign-up users#signup
User Sign In POST /sign-in users#signin
User Sign Out DELETE /sign-out/:id users#signout
Add Product to Cart PATCH /users/:id users#addproduct
Empty Products From Cart PATCH /users/:id/cart users#emptyCart
Get User's Cart GET /users/:id users#getCart
Get All Products GET /products products#index
Create a Product POST /products products#create
Get A Product GET /products/:id products#show
Delete a Product DELETE /products/:id products#destroy