Skip to content

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.

Notifications You must be signed in to change notification settings

ingy-elkhateeb/Node.js-and-Express-RESTful-API-for-CRUD-Operations-on-Courses

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Node.js and Express RESTful API for CRUD Operations on Courses

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.

✨ Features

  • 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.

🚀 Installation

  1. Clone the repository to your local machine.
  2. Install the required dependencies using npm or yarn.
  3. Configure the database connection in the .env file.
  4. Run the API using the command npm start or yarn start.
  5. you should see the App is listening on port ...
  6. Start testing the API endpoints using Postman.

✅ Testing with 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


🤝 Contributing

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! 🎉

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published