Build a rating and review module & API - React.js Tutorial 5 - From cart to e-commerce web app

Опубликовано: 11 Октябрь 2024
на канале: web - presence
290
3

In this lesson we build a purchase verified rating and review api and module.

00:14 - Update database for "reviews" data
02:17 - Write server side node.js for "reviews" data
08:24 - Utilize my old MongoDB e-comm web app
09:06 - "Leave a review" API module
11:50 - Add send review function & comment form
12:08 - Remove JavaScript & HTML we do not use
13:15 - Write a global "timestamp" function
14:58 - Refactor old code for review module
17:18 - Update "items" table when review is submitted
18:31 - React useEffect() for "comment" module
22:46 - Star rating component
24:56 - Refactor star component with mapping
30:30 - Write client side, update rating info on "items" table
35:41 - Display overall review average
37:54 - Reset MySQL default data
43:15 - Determine if user has verified purchase
44:53 - Write product comments
51:29 - Clear all DB reviews
52:20 - Server side request purchase info from specific users
55:30 - Set UI for verified purchase
59:02 - Fine tuning - spacing and padding
01:00:36 - Pass "grab item" function to child modules
01:02:57 - Auto populate previous comment and rating
01:05:20 - Allow only one review by hiding button
01:07:45 - Protect SQL database from illegal characters
01:08:31 - Move user purchases request to parent App.js

Github: https://github.com/aaronrs2002/cart-e...