-
Notifications
You must be signed in to change notification settings - Fork 40
Description
π Other Issue
Description
Provide a clear and concise description of the issue or topic.
We need to implement the backend API endpoints to manage products in the StyleCart store. This includes creating the schema/model for products, and implementing standard CRUD operations.
Type of Issue
Select the type of issue:
- π Documentation
- π οΈ Build/Deployment
- πΌοΈ UI/UX Design
- βοΈ Performance
- Other (please specify)
Tasks
Create a Mongoose Product Schema
Fields: name, brand, price, description, category, image, stock, rating, reviews
Save it as models/Product.js
Create API Routes in Express
GET /products β List all products
GET /products/:id β Get product by ID
POST /products β Add new product (admin only)
PUT /products/:id β Update existing product
DELETE /products/:id β Delete product by ID
Additional Context
Add any other context, suggestions, or relevant details regarding the issue.
Checklist
- I have searched the existing issues, and this issue is not a duplicate.
- I have starred this repository.
- I have provided all necessary details.