Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Express.js User CRUD (Create, Read, Update, Delete) Routes and Controller #21

Open
11 tasks
LeHuth opened this issue May 12, 2023 · 0 comments
Open
11 tasks
Assignees
Labels

Comments

@LeHuth
Copy link
Owner

LeHuth commented May 12, 2023

Description

We need to create a set of CRUD operations for User model in our Express.js application, excluding the registration and login processes. This will allow us to manage users' data effectively.

Requirements

  • All routes and controllers should be properly tested

Tasks

  1. Create User Controller Methods

    • Create a method for retrieving all users
    • Create a method for retrieving a single user by id
    • Create a method for updating a user's details
    • Create a method for deleting a user
  2. Create User Routes

    • Create a route for creating a new user (POST /users)
    • Create a route for retrieving all users (GET /users)
    • Create a route for retrieving a single user (GET /users/:id)
    • Create a route for updating a user's details (PATCH /users/:id)
    • Create a route for deleting a user (DELETE /users/:id)
  3. Testing

    • Write tests for all the routes and controller methods
    • Ensure all tests are passing

Additional Notes

  • Please follow the existing code style guide for consistency.
  • If you have any questions or need clarification, feel free to ask.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants