This project is an implementation of a REST API for performing CRUD (Create, Read, Update, Delete) operations using Node.js and Express.js. The primary operations of this API include:
- Get Users: Retrieve a list of all users.
- Get Specific User: Fetch information about a specific user.
- Create a New User: Add a new user to the database.
- Delete a User: Remove a user from the database.
- Update User Information: Modify the information of an existing user.
To get started with this project, follow these steps:
-
Clone the repository to your local machine.
git clone https://github.com./victor-villca/NodeJS-Express-SimpleCRUD-API.git
-
Install the required dependencies.
npm install
-
Start the server.
npm start
Your API should now be up and running, allowing you to perform CRUD operations on user data.
You can use various HTTP requests to interact with the API:
GET /users
: Retrieve a list of all users.GET /users/{id}
: Fetch information about a specific user by providing their ID.POST /users
: Create a new user by sending a JSON payload with user details.DELETE /users/{id}
: Delete a user by providing their ID.PUT /users/{id}
: Update user information by providing their ID and the updated data.
If you'd like to contribute to this project, feel free to fork the repository and submit pull requests with your changes. :)