In this portrait, we are going to use the express look, Jess, and also Mongo DB to create this project.
But what is expressed as expressed, as you say, back and application framework for the nucleus and
this framework is this idea for making developing websites and apps or API much easier.
And if you look at this Web page, you can see it.
There are a comparison with the program that use doctorate's only and the other is the nucleus with
Express Guess.
And as you can see that in the right hand side, it's much cleaner and is easier to maintain and more
readable.
So now we come back to our project and since we are going to use to express that, so we have to follow
these instruction so we already create a photo.
So we just need to use APM in it.
So we are patient here.
We have hyphen and why now?
We create a project and then we are going to install the Express.
So we copy this.
And here.
Now, you can see inside the cage that Jason, you have to express here, so next time when you use
NPM, install it, install the express automatically.
And by the way, if you do not have to NPM command, you have to install the AC at all.
Now, we are going to create an app not just at NASA and inside here.
We are going to use the Express by typing constant express and require express.
And then we have the constant app is equal to express and then we are going to listen to a 3000 number.
And this mean if we want to assess this app, we have to use the local host and with the port free thousands.
But we can't access this site yet because we haven't stopped the server.
And also we have to add the routing so that it can return something if we go to the website.
So we have the app looked at and and then request and respond and then we are going to use that respond
to send and we have the paragraph and we type homepage.
Now we are going to start the server by using the Bond app.
And also if you haven't got the money, you have to type NPM install and then bash G and then don't
want to installed the note mod.
And now we are going to start Safaa with not Maun.
Now, if you go to the Web site again.
You can see the homepage, there's two of us we turned.
It is because we have this hand on, which means there is just a and which means there is just a little
after this you are El.
And if we want to go to another page, for example, later we will have a at item page.
So we want to add they wrote about an item and then we put a request and response.
And this time we are going to send a header with that items.
So now if we type at item, you can see these headers and items here.
So now you can see how to return different page with different route.
And of course, this is not a good way to return the XHTML code.
So in the next part, we are going to do it in another way.