Skip to content

feat: Create user signup route #1

Description

@MahendraDani

Description

New users should first signup. Your task is to implement a route to signup the new user. The details of new user should be added to database.

Difficult

  • Easy
  • 10 Points

API Endpoint

POST http://localhost:3000/auth/signup

Controller

/controllers/auth/signup.js

Request Body

  • firstName
  • lastName
  • email
  • password

Response

{
status : 200,
message : "User signed up successfully",
user : {
  firstName : "Jhon",
  lastName : "Doe",
  email : "jhon@example.com",
  password : "adsfsjkavidfmnasdfjklasdfnmdavkjadsf23123adsf",
  }
}

Note

The password of the users should be hashed using bcryptjs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Easy10 points reward

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions