Framinus / pizza-restaurant

An API built in Node, Express and PostgreSQL
0 stars 0 forks source link

Complete order and delivery routes. #7

Open Framinus opened 6 years ago

Framinus commented 6 years ago

For this, should we create a new routes file called order.js? I can take this issue.

Framinus commented 6 years ago

Or "cart.js", rather. I'll stick with the convention set up for the queries!

alexandrawaite commented 6 years ago

Sounds good!

Framinus commented 6 years ago

The routes for credit cards and payment methods are done, other than that one issue with getting the decrypted credit card info back from the read query. i will look into that tonight!

Framinus commented 6 years ago

the createCart function requires some discussion as to where the inputs are coming from. are customers logged in before they can place an order? if so, are we saving their ids as session variables to pass into the subsequent order pages? would the payment method id also be saved this way? Let's check in tomorrow!

alexandrawaite commented 6 years ago

Ohhh, good questions. I like the idea of requiring users to log in before placing an order and using sessions. I'll come over after project stand-up tomorrow to check in.