This repository contains a RESTful API developed using Node.js and Express for performing CRUD (Create, Read, Update, Delete) operations on courses. The API provides endpoints to manage courses and allows testing these operations using Postman.
- Create new courses by providing relevant information such as title, description, and duration.
- Retrieve a list of all courses or fetch a specific course by its ID.
- Update existing courses by modifying their attributes.
- Delete courses based on their unique ID.
- Comprehensive error handling and appropriate status codes for different scenarios.
- Integration with Postman to easily test the API endpoints.
- Clone the repository to your local machine.
- Install the required dependencies using npm or yarn.
- Configure the database connection in the
.env
file. - Run the API using the command
npm start
oryarn start
. - you should see the App is listening on port ...
- Start testing the API endpoints using Postman.
To test the API endpoints, you can import the provided Postman collection from the postman
directory. The collection includes pre-configured requests for all the CRUD operations on courses.
- Deleting a Course
- Add course using Put
- Error if course name is not specified
- Get list of courses
- Posting New Course
Contributions are welcome! If you find any issues or have suggestions for improvements, please feel free to create an issue or submit a pull request. Please follow the established coding conventions and provide clear descriptions of your changes.
Enjoy managing courses effortlessly with the Node.js and Express RESTful API for CRUD operations! 🎉