You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
Enhance the Flipkart Clone project by adding a ratings and review functionality. This feature will allow users to rate products and leave reviews, which will help other users make informed purchasing decisions.
Tasks:
Backend Implementation:
Product model already has fields for ratings and reviews.
Create endpoints for submitting a new rating and review, editing an existing review, and deleting a review.
Ensure that each user can only leave one review per product.
Calculate the average rating for each product based on user ratings.
Frontend Implementation:
Add UI components to display the average rating and user reviews on the product detail page.
Form to submit new ratings and reviews is already there, just make it working by sending request to server on submission.
Provide functionality for users to edit and delete their reviews.
Display user reviews in a list with sorting options (e.g., newest first, highest rating).
Database Changes:
Product schema already includes a reviews array and a ratings field.
Ensure that reviews are linked to user IDs and product IDs.
Acceptance Criteria:
Users should be able to rate products on a scale (e.g., 1 to 5 stars).
Users should be able to write and submit text reviews for products.
Each user should be able to edit or delete their own reviews.
The product detail page should display the average rating and a list of reviews.
The text was updated successfully, but these errors were encountered:
Description:
Enhance the Flipkart Clone project by adding a ratings and review functionality. This feature will allow users to rate products and leave reviews, which will help other users make informed purchasing decisions.
Tasks:
Backend Implementation:
Frontend Implementation:
Database Changes:
reviews
array and aratings
field.Acceptance Criteria:
The text was updated successfully, but these errors were encountered: