The "reviews" module for the Udemy course page.
| Route/Endpoint | Description | Method |
|---|---|---|
| /:courseId/reviews/ | get all reviews for a specific course | GET |
| /:courseId/reviews/:reviewId | get a single review for a course | GET |
| /:courseId/reviews/ | add a new review to a specific course | POST |
| /:courseId/reviews/:reviewId | edit a review for a specific course | PUT |
| /:courseId/reviews/:reviewId | delete a review for a specific course | DELETE |
| Route/Endpoint | Description | Method |
|---|---|---|
| /users/:userId/reviews | get all of a user's reviews | GET |
- https://github.com/u-demo/header-sidebar-service
- https://github.com/u-demo/students-also-bought-service
- https://github.com/u-demo/instructors-service
To run:
- run schema.sql to create SQL database (mysql -u [username] -p [password])
- npm run seed to seed database
- npm start to start server
- hosted on localhost:3001
- run npm run react to compile webapp
From within the root directory:
npm install