As a logged-in user, I want to be able to leave reviews for products (including text and a 5-star rating), so that I can share my experiences with other visitors.
Technical Implementation:
[x] <Review /> form with the following inputs:
[x] content
[x] star rating (1 - 5) <-- this will need images!
[x] submit button
[ ] product name is stored in the form
^^ changed this to be product id instead of product name!
[x] POST /api/reviews that creates a new instance on the Reviews model, make sure to link the review to the product and the user
As a logged-in user, I want to be able to leave reviews for products (including text and a 5-star rating), so that I can share my experiences with other visitors.
Technical Implementation:
<Review />
form with the following inputs:POST /api/reviews
that creates a new instance on the Reviews model, make sure to link the review to the product and the user