Creating a new user

First, we will create a new user with the /api/users POST request, and pass name, email, and password values in the request body. When the user is successfully created in the database without any validation errors, we will see a 200 OK success message as shown in the following screenshot:

Get Full-Stack React Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.