Open Vishnu1804K opened 6 months ago
example 4.5 star rating or some rating is given by the user to rate the product so i want to implement this feature in your project
Ensure thorough documentation accompanies your creations, and utilize images and visuals in the repository's issue section to aid understanding.
I want to implement is like this to rate the products inorder to better the better understanding of the project that user should buy it or not
Can you give whole explanation about how to you execute this in reference with code and approach of backend connection
generally I will be using the material ui and this I will use Rating component and then I will get the rating value then I will store the value in an array the backend to know who all rated the product and show the average rating at the card and , here is the refence of material ui component : https://mui.com/material-ui/react-rating/
at this part const ReviewSchema = new Schema({ user: { type: Schema.Types.ObjectId, ref: 'ecommerceUser', }, text: { type: String, required: true, }, }); I will write a other key name as "rating"
and show the average rating at the frontend of that particular project
Good brother go with this
I want to implent a rating feature so that please can rate the product . please assgin me this issue under GSSOC'24