/Crud-Http-Express

Make Crud Operation Using Http & Express.

Primary LanguageJavaScript

Crud-Http-Express

License Node.js Version Express.js Version

Crud-Http-Express is a simple CRUD (Create, Read, Update, Delete) API built with Node.js and Express.js. It provides a basic HTTP interface to interact with a simple database and perform CRUD operations on the data.

Features

  • Create new items
  • Read existing items
  • Update existing items
  • Delete items
  • RESTful API design
  • Easy to use and extend

Installation

  1. Make sure you have Node.js and npm installed.
  2. Clone this repository: git clone https://github.com/Irenaeus-XVI/Crud-Http-Express.git
  3. Navigate to the project directory: cd Crud-Http-Express
  4. Install the dependencies: npm install

Usage

  1. Start the server: npm start
  2. The API will be accessible at: http://localhost:3000

API Endpoints

  • GET / - Get all items
  • GET /searchById - Get a specific item
  • POST /addUser - Create a new item (JSON payload required)
  • PUT /updateUser - Update an existing item (JSON payload required)
  • DELETE /deleteUser - Delete an item

Contributing

Contributions are welcome! If you find any issues or have suggestions, please feel free to open an issue or create a pull request.

License

This project is licensed under the MIT License.