API_USERS_CRUD

Express.js User Management App

https://api-user-management.onrender.com/api/users

This is an Express.js Server application for managing user data.

Installation

  1. Make sure you have Node.js and npm installed on your machine.
  2. Clone this repository.
  3. Navigate to the project directory in your terminal.
  4. Run npm install to install dependencies.
  5. Run node app.js to start the server.

Usage

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.

Running the Application

To run the application locally, execute the following commands:

Technologies Used

  • Express.js
  • fs (File System)

File Structure

  • index.js: Main application file.
  • MOCK_DATA.json: Mock user data file.

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.