harshalhonde21 / EcommerceSpectastyle

Through this project, we aim to not only learn but also innovate, leveraging the power of the MERN stack to create scalable and efficient solutions. By incorporating cutting-edge warehouse management techniques, we're poised to deliver a comprehensive Ecommerce platform that sets new standards in online retail
https://spectastyle.vercel.app
99 stars 135 forks source link

implement rating feature #17

Open Vishnu1804K opened 6 months ago

Vishnu1804K commented 6 months ago

I want to implent a rating feature so that please can rate the product . please assgin me this issue under GSSOC'24

Vishnu1804K commented 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

harshalhonde21 commented 6 months ago

Ensure thorough documentation accompanies your creations, and utilize images and visuals in the repository's issue section to aid understanding.

Vishnu1804K commented 6 months ago

Screenshot 2024-05-10 121229

Vishnu1804K commented 6 months ago

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

harshalhonde21 commented 6 months ago

Can you give whole explanation about how to you execute this in reference with code and approach of backend connection

Vishnu1804K commented 6 months ago

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/

Vishnu1804K commented 6 months ago

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"

Vishnu1804K commented 6 months ago

and show the average rating at the frontend of that particular project

harshalhonde21 commented 6 months ago

Good brother go with this