From the course: Nest.js Developer Lab 2026: Build a Robust API with Authentication, Articles, and User Profiles
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Preparing register request - Nest.js Tutorial
From the course: Nest.js Developer Lab 2026: Build a Robust API with Authentication, Articles, and User Profiles
Preparing register request
In this video, we are starting to create our new module and new API. And this is the registering of a user. So let's check this out. So here I opened our requirements. As you can see, we have here a registration part, and this is the POST request. So we are creating a user for slash API slash users. And this is the example of the request. So we have an object with property user. This is important, so we're not throwing all fields just inside root, but they're inside user. And here we're passing username, e-mail and password. And of course, all these three fields are mandatory. So no authentication required, and we're returning back a user. This is how our user is looking like. So it is looking like this across the whole application. So here we have an object with field user, and here are e-mail, username, biography, image, token and about token we will talk later but this is the raw thing that we will implement. So let's start coding. I will jump back inside our source and as you can…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Creating migrations14m 2s
-
(Locked)
Preparing register request9m 44s
-
(Locked)
What is DTO?6m 48s
-
(Locked)
Creating user entity15m 55s
-
(Locked)
Generating JWT token16m 27s
-
(Locked)
Validation pipes8m 57s
-
(Locked)
Login request18m 35s
-
(Locked)
Auth middleware25m 9s
-
(Locked)
User decorator8m 34s
-
(Locked)
Auth guard7m 5s
-
(Locked)
Updating current user11m 9s
-
(Locked)
-
-
-
-