https://github.com/irenaeus-xvi/crud-http-express
Make Crud Operation Using Http & Express.
https://github.com/irenaeus-xvi/crud-http-express
expressjs http nodejs restful-api
Last synced: 9 months ago
JSON representation
Make Crud Operation Using Http & Express.
- Host: GitHub
- URL: https://github.com/irenaeus-xvi/crud-http-express
- Owner: Irenaeus-XVI
- Created: 2023-07-18T19:38:18.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-18T19:47:50.000Z (over 2 years ago)
- Last Synced: 2025-03-03T15:21:30.373Z (about 1 year ago)
- Topics: expressjs, http, nodejs, restful-api
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Crud-Http-Express
[](https://github.com/Irenaeus-XVI/Crud-Http-Express/blob/master/LICENSE)
[](https://nodejs.org/)
[](https://www.npmjs.com/package/express)
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](https://nodejs.org/) and [npm](https://www.npmjs.com/) 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](https://github.com/Irenaeus-XVI/Crud-Http-Express/blob/master/LICENSE).