-Includes documentation on how to set up, run the application, and test. -Drive Link for the video of responsive site and sql - [https://drive.google.com/drive/folders/1TNDh1OXAsa3jX2p9wtZvf7BDA-OWpkoF?usp=sharing]
- Display a list of products with details and images
- Submit ratings (1-5 stars) and text reviews
- Show reviews on demand with filter by tags
- Animated UI using Framer Motion and styled-components
- Store reviews persistently in MySQL database via REST APIs
- rating/ — React frontend code
- review/ — Express backend API
- database/ — MySQL database schema and setup
-Navigate to the backend folder:
-cd review
-Install dependencies: npm install
-Configure your MySQL database connection in server.js or appropriate config file
-Create the MySQL database and tables using the provided SQL schema (if available), or run
-Start the backend server:
-node server.js
-By default, the backend listens on http://localhost:5000.
-Open a new terminal window/tab and navigate to the frontend folder:
-cd rating
-Install dependencies
-Start the React development server: npm start
-The frontend will open automatically in your browser at http://localhost:3000.
✅Use the React UI to submit ratings and reviews for products.
✅Click "Show Reviews" button to view stored reviews.
✅Confirm in the MySQL database that the reviews are being saved.
✅Check the terminal running the backend for any error messages.
✅The UI animations and transitions should respond on hover and click.
These are typically installed via npm install inside your rating/ folder:
| Package | Purpose |
|---|---|
react |
Core React library |
react-dom |
DOM bindings for React |
styled-components |
Styling UI components |
axios |
HTTP rating to make API requests |
framer-motion |
Animations and transitions |
react-icons |
Icon library (used for FaStar) |
📌 You can confirm by checking rating/package.json under "dependencies".
Installed via npm install inside your review/ folder:
| Package | Purpose |
|---|---|
express |
Backend web framework |
cors |
Enables Cross-Origin Resource Sharing |
mysql2 |
MySQL driver for Node.js (you used this for DB) |
body-parser |
Parses JSON body in requests |
nodemon (dev) |
Automatically restarts server during development |
📌 You can confirm by checking review/package.json.