https://api-user-management.onrender.com/api/users
This is an Express.js Server application for managing user data.
- Make sure you have Node.js and npm installed on your machine.
- Clone this repository.
- Navigate to the project directory in your terminal.
- Run
npm install
to install dependencies. - Run
node app.js
to start the server.
Users can interact with the application through API endpoints. Here are the available endpoints:
/api/users
: GET endpoint to retrieve all users./users
: GET endpoint to render user data as an HTML page./api/users/:id
:- GET endpoint to retrieve a specific user by ID.
- PUT endpoint to update a specific user by ID.
- PATCH endpoint to partially update a specific user by ID.
- DELETE endpoint to delete a specific user by ID.
/api/users
: POST endpoint to create a new user.
To run the application locally, execute the following commands:
- Express.js
- fs (File System)
index.js
: Main application file.MOCK_DATA.json
: Mock user data file.
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.