In this part, we the going to focus on the surface to try to create a mouse for not in going out and
also sign up.
So first we go to the server folder and then we create Robert's photo.
So we write Kate and create new folder, then type Rousse.
And then under the folder we create another file called All Wild Things.
And for us, we have to import the round the router from the Express and we are going to create a louder
echo to router and then we are going to create a post.
We, Chris?
And then at this time, we create a function for us, so we do the same for the north end and also lock
out.
And since we do not need to pass any date, has forward a lot of.
So we just need to use to get and so the website will be CRAs to allow to use it.
At last, we are going to export this router.
So it will later import to the investment.
Yes, but first we are going to create a controller.
So under the surface again, we create a new Foldit called conquerers.
So under the foda, we create a Fowle's code of controllers.
So under here we are going to create the functions of sign up, log in and also out.
So we use modules for export.
Thought going up is equal to the first response.
And here we are.
Just stand the test of sign up.
So we do the same for the log in and also out.
So after we already create this function, we need to pass these functions to the rules that we just
created.
So for us, we have to import the old controller so we create a constant of control of these AECO to
require.
And then there's controller and of controller, and then we remove this and change this to all controllers.
And of course, I used to tie up functions and this is going to use Laurine.
And at last we are going to use the alphabet out.
So we already create a mouse.
So we need to go back to the industry as an importance to this file.
So under the act, we are going to import the all about equal to require round and all rouse and we
use and use all rouse and then we are going to start the server by going to the server and then we type
in that.
And this is easy to check the not all functions, because when we type you out at the browser, you
say can't be localhost 5000 and then type out.
You'd be returned a lot.
Altez And this is because we already said if we have a request of how it will return to our test and
we do the be here before the post requests like these.
We cannot do something similar in here.
We do not have anything returned, and this is because we are using the request.
So in order to make a post request, we need to use the postmen.
And you can download the postman from the postman dot com.
Now we can go to the postman and we type localhost five claverton and sign up and we choose to post
here rather than get and send.
Now you can see the test here.
We turned up.
And if we go to lock in and then again, it will return a lot in and we can also check the request by
changing things to get an.
We call to law now and extend it will also be turned out, but we will not return to anything if we
change to post we Cresson.