1
00:00:00,270 --> 00:00:07,410
In this part, we the going to focus on the surface to try to create a mouse for not in going out and

2
00:00:07,410 --> 00:00:08,370
also sign up.

3
00:00:08,900 --> 00:00:12,890
So first we go to the server folder and then we create Robert's photo.

4
00:00:13,020 --> 00:00:18,300
So we write Kate and create new folder, then type Rousse.

5
00:00:19,050 --> 00:00:25,510
And then under the folder we create another file called All Wild Things.

6
00:00:26,280 --> 00:00:37,440
And for us, we have to import the round the router from the Express and we are going to create a louder

7
00:00:38,550 --> 00:00:45,360
echo to router and then we are going to create a post.

8
00:00:45,450 --> 00:00:46,070
We, Chris?

9
00:00:48,180 --> 00:00:57,570
And then at this time, we create a function for us, so we do the same for the north end and also lock

10
00:00:57,610 --> 00:00:57,930
out.

11
00:01:00,650 --> 00:01:04,360
And since we do not need to pass any date, has forward a lot of.

12
00:01:04,800 --> 00:01:12,840
So we just need to use to get and so the website will be CRAs to allow to use it.

13
00:01:13,610 --> 00:01:19,060
At last, we are going to export this router.

14
00:01:19,940 --> 00:01:23,440
So it will later import to the investment.

15
00:01:23,490 --> 00:01:27,450
Yes, but first we are going to create a controller.

16
00:01:27,620 --> 00:01:33,120
So under the surface again, we create a new Foldit called conquerers.

17
00:01:34,160 --> 00:01:38,400
So under the foda, we create a Fowle's code of controllers.

18
00:01:39,800 --> 00:01:45,160
So under here we are going to create the functions of sign up, log in and also out.

19
00:01:45,290 --> 00:01:48,980
So we use modules for export.

20
00:01:49,370 --> 00:01:53,680
Thought going up is equal to the first response.

21
00:01:54,260 --> 00:01:55,760
And here we are.

22
00:01:55,760 --> 00:01:59,930
Just stand the test of sign up.

23
00:02:00,230 --> 00:02:03,760
So we do the same for the log in and also out.

24
00:02:04,310 --> 00:02:10,100
So after we already create this function, we need to pass these functions to the rules that we just

25
00:02:10,100 --> 00:02:10,650
created.

26
00:02:10,790 --> 00:02:19,250
So for us, we have to import the old controller so we create a constant of control of these AECO to

27
00:02:19,250 --> 00:02:20,010
require.

28
00:02:20,210 --> 00:02:28,610
And then there's controller and of controller, and then we remove this and change this to all controllers.

29
00:02:28,950 --> 00:02:34,710
And of course, I used to tie up functions and this is going to use Laurine.

30
00:02:35,240 --> 00:02:38,270
And at last we are going to use the alphabet out.

31
00:02:38,600 --> 00:02:41,200
So we already create a mouse.

32
00:02:41,510 --> 00:02:46,920
So we need to go back to the industry as an importance to this file.

33
00:02:47,300 --> 00:02:57,080
So under the act, we are going to import the all about equal to require round and all rouse and we

34
00:02:57,080 --> 00:03:06,110
use and use all rouse and then we are going to start the server by going to the server and then we type

35
00:03:07,190 --> 00:03:07,760
in that.

36
00:03:08,090 --> 00:03:15,400
And this is easy to check the not all functions, because when we type you out at the browser, you

37
00:03:15,410 --> 00:03:20,540
say can't be localhost 5000 and then type out.

38
00:03:21,440 --> 00:03:22,870
You'd be returned a lot.

39
00:03:22,940 --> 00:03:32,000
Altez And this is because we already said if we have a request of how it will return to our test and

40
00:03:32,000 --> 00:03:36,380
we do the be here before the post requests like these.

41
00:03:37,870 --> 00:03:43,130
We cannot do something similar in here.

42
00:03:43,180 --> 00:03:48,750
We do not have anything returned, and this is because we are using the request.

43
00:03:49,150 --> 00:03:53,680
So in order to make a post request, we need to use the postmen.

44
00:03:53,920 --> 00:03:57,290
And you can download the postman from the postman dot com.

45
00:03:57,310 --> 00:04:04,390
Now we can go to the postman and we type localhost five claverton and sign up and we choose to post

46
00:04:04,900 --> 00:04:08,040
here rather than get and send.

47
00:04:08,230 --> 00:04:09,910
Now you can see the test here.

48
00:04:09,910 --> 00:04:11,110
We turned up.

49
00:04:12,120 --> 00:04:23,220
And if we go to lock in and then again, it will return a lot in and we can also check the request by

50
00:04:23,220 --> 00:04:24,780
changing things to get an.

51
00:04:26,170 --> 00:04:35,320
We call to law now and extend it will also be turned out, but we will not return to anything if we

52
00:04:35,320 --> 00:04:36,880
change to post we Cresson.
