The assignment I completed is the "BACKEND ASSIGNMENT: 'Ecommerce API with Node.js'" and used MongoDB as Database.
Explain how to set up and run your project locally. Include steps for installing dependencies, configuring environment variables, and starting the development server.
npm install
npm run dummy-data
num start
POST /user/register
Create a new user.
POST /user/login
User login.
GET /cart/
Get all items in the user's cart.
POST /cart/add
Add a product to the user's cart.
DELETE /cart/remove/${ProductID}
Delete a product from the user's cart.
PUT /cart/update/${ProductID}
Update the quantity of a product in the user's cart.
POST /api/category/listing
Get a list of all product categories.
GET /product/
Get a list of all products.
GET /product/${id}
Get product details by its ID.
POST /product/
Add a new product.
DELETE /product/delete/${id}
Delete a product by its ID.
POST /order/
Add an order to the user's order history.
GET /order/history
Get the user's order history.
GET /cart/${id}
Get order details by its ID.