VanshKing30 / FoodiesWeb

GssoC'24 Project | Open To Contributers
https://foodies-web-app.vercel.app
MIT License
61 stars 154 forks source link

DOC: add OrderHistory.jsx #501

Open AKSHITHA-CHILUKA opened 1 month ago

AKSHITHA-CHILUKA commented 1 month ago

What's wrong with the existing documentation

add OrderHistory.jsx

Allow users to view their past orders or activities related to their profile.

Add ScreenShots

No response

Record

AKSHITHA-CHILUKA commented 1 month ago

add in src/pages

hustlerZzZ commented 1 month ago

How will you log all the things ?

AKSHITHA-CHILUKA commented 1 month ago

Create a /api/log-order endpoint to log new orders

Design an OrderHistory table with columns for user ID, order ID, date, items, status, and total amount.

On order completion, send a POST request to /api/log-order with order details.

Store order details in the OrderHistory table.

hustlerZzZ commented 1 month ago

Create a /api/log-order endpoint to log new orders

Design an OrderHistory table with columns for user ID, order ID, date, items, status, and total amount.

On order completion, send a POST request to /api/log-order with order details.

Store order details in the OrderHistory table.

Okay go ahead