Welcome to Ph-hero-3! This project provides API routes for managing courses, categories, reviews, and finding the best course based on certain criteria.
- GET /api/courses: Retrieve a list of all courses.
- GET /api/courses/{courseId}: Retrieve details of a specific course by ID.
- POST /api/courses: Create a new course.
- PUT /api/courses/{courseId}: Update an existing course.
- DELETE /api/courses/{courseId}: Delete a course by ID.
- GET /api/categories: Retrieve a list of all categories.
- GET /api/categories/{categoryId}: Retrieve details of a specific category by ID.
- POST /api/categories: Create a new category.
- PUT /api/categories/{categoryId}: Update an existing category.
- DELETE /api/categories/{categoryId}: Delete a category by ID.
- GET /api/reviews: Retrieve a list of all reviews.
- GET /api/reviews/{reviewId}: Retrieve details of a specific review by ID.
- POST /api/reviews: Create a new review.
- PUT /api/reviews/{reviewId}: Update an existing review.
- DELETE /api/reviews/{reviewId}: Delete a review by ID.
- GET /api/course/best: Retrieve the best course based on certain criteria, such as highest rating, most reviews, etc.
- Clone this repository to your local machine.
- Install dependencies using
npm install
oryarn install
. - Set up your environment variables as needed, such as database connection details.
- Run the server using
npm start
oryarn start
. - Access the API endpoints using the specified routes and methods.
- MD Tajul Islam Tanvir
This project is licensed under the MIT License.