From the course: Mastering Nest.js: Build Scalable Applications with Mastery in Nest.js Framework
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Setting up the sign-up route - Nest.js Tutorial
From the course: Mastering Nest.js: Build Scalable Applications with Mastery in Nest.js Framework
Setting up the sign-up route
So, we will begin with creating the signup page where the user can enter the user name which is the e-mail along with the password and confirm password fields. So let's begin. First of all, we need to put a signup link on the navbar. So here in the navbar I will add another ul tag and inside it I will define the li and anchor tag with the text signup. And let me give the nav related classes navbar nav to ul, navitem to li. Now we have some other classes as well for the anchor tag so let me copy and paste them. All right, let's check the output. And we have the signup on the right. Now when we click on it, we should get the signup form and for that, we'll need to configure the route. So let's specify the route in the href, I'll say slash mystore slash signup. And I'll give the icon class as well before the signup text. I'll give the class bi bi box arrow in right. Now let's create a template file signup.ejs and here I'll define the basic structure and include the navbar. And let me…
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)
Section introduction2m 33s
-
(Locked)
Setting up the sign-up route2m 24s
-
(Locked)
Designing the sign-up form2m 53s
-
(Locked)
Implementing show/hide password functionality4m 40s
-
(Locked)
Validating password2m 32s
-
(Locked)
Registering user to the database6m 50s
-
(Locked)
Configuring login page2m 12s
-
(Locked)
Validating user and sending cookie4m 41s
-
(Locked)
Reading a cookie2m 13s
-
(Locked)
Rendering DOM based on login status3m 48s
-
(Locked)
Implementing logout1m 20s
-
(Locked)
Configuring Express-Session2m 54s
-
(Locked)
Sending and reading session cookie3m 40s
-
(Locked)
Storing sessions in MySQL3m 44s
-
(Locked)
Destroying the session: Logout1m 42s
-
(Locked)
Optimizing session storage4m 15s
-
(Locked)
Implementing JWT token6m 51s
-
(Locked)
Validating request with middleware5m
-
(Locked)
Conditional rendering with token6m 14s
-
(Locked)
Hashing the password on sign-up3m 51s
-
(Locked)
Validating login credentials2m 15s
-
(Locked)
Finalizing MyStore application4m 20s
-
(Locked)
-
-