Now we will create a server here, so what we have to do is that we will have to create a server file, so what we will do here is that we will create a file in the root by the name of server.js, this will be our entry point i.e. its With its help , we will run our server. Now if we have to create a server here, then there will be some dependency for it because we will create a REST DP with the help of Express. We will have to install it, so what will we do for that? If you want, you can go to the terminal. If you want, you can do it in the integrity terminal. From here, click on the terminal and here you have to install some dependency downloader. In my case, what will I do, in the beginning , I will install all the dependencies, whatever downloader is there, so that we can use it later. If you don't want to install it then here you have to write, first of all what will remain is to be created, after that we will do it for Morgan here, so what will Morgan do? What is the end point of the route on the console and how much time did it take to execute ? What has been done will be displayed here, so how can you check it? See, what you have to do is simply go to GS, mpmgs.com and from here you can search all the packages as I write. If you search here by writing Morgan and so on, you will get the exact match here because we do not know the package, if you do not know the package name then you will get many suggestions in the alternate, so from here you can see how to install it. And what does this package do in actual, then you will get all these details here and how much are its weekly downloads and what is its size and which version is running currently and check all the packages one by one from here. You also get the link to its official tree home page. Similarly, what will we do with any other package which we install? Mixer, you check all of them here once, which thing reduces what, then you will get the basic idea. It will be here so it's great, you must check all the packages here, so now what we will do is that after this we will also install the colors package, so what will happen to our console that we will be able to add colors. In the same way, we will add the package of Dot Tanvi here. If we minimize it for some time, then what will we do in Dot also. Here it will give us environmental variables, so whatever is our secret or confidential data, then we will add it in Dot. Whatever we do in the ENV file, to handle it, we install the dot env packet here, after that we have Load Mall, Load Van, what will it do, note that the GS code will be kept on in watch mode i.e. You will not need to restart the code of the note again and again, so if you make changes in your application again and again, you will not have to restart the server. You can directly do whatever it is, we will restart the work. If we are going to do the same with Mongoose here, then you have to install Mongoose also, after that we will do it with Jason webtalkin here, it will encrypt it for authentication, that is, we will submit it in the Hass form, so our application will be like this. It will be protected and I think that's enough for now, there are so many packages mixer, you must check it one by one and for fun, if you write this much and press enter, then what will happen with this, here a folder of note models will be created and in it this All the dependencies will be downloaded, but the installation has started here. After some time, whatever is available here will be downloaded and installed. You can check it like if the download is finished here, then another object will be created here and the dependencies will be here. But we will show it in the same way, here we have a file called server.js and here we have index.js, so we had added it, what will happen in it, by default the file of index.js will take whatever is there, I will cut it. First the dependencies allow it to be downloaded, then sometimes it issues in the packages so that the files of the castes are not mixed equally, what to do, see what is MBC, here a design pattern is followed whenever you do any big We will create a scale project, then there is a design pattern which is followed, so in Note GS or in any spring programming, whatever is there in MBC architecture, then for that we will create some folders here, after that Will be in which controllers will create folders related to our configuration. Our controllers functions will be there in it i.e. Mostly we add the call back function inside this, after this you can create another one with the name of middle, if you want to add middles, then in this file you can handle it separately and in one there is a folder of model. We will do the scheme design here because there is no sequel data base so we have to design the model i.e. we have to create the scheme, so we will handle it inside this folder, so see here the basic MBC pattern has been created and Our downloader has also installed all the packages here, we will check it. Package Jaisalmer. So see here the dependency has become its object and all the dependencies that we have downloaded have come here, after that we will also check its version. If you can, then you must see its version. If the latest version gives any problem, then you can download the version from us and also see here, we will change this file here, the file will be in server.js, so what is the script? To learn your application, you can add multiple scripts here, so what we will do for that is we will add a script here, we will add start key and what will happen in start, what will we do with the help of note, our server.js file. We will run it in the same way, we have installed demonetization here, for that we will add the command of server here, here you have to write load man and server dot jsk file, then two commands extra, we have added here first the basic note. With the help of this, we will start the application. In the second one, we will run the server through notebank. In the same way, we have to run the React application as root from here, so for that also we will install that and then that is. We will add it here also, so let's leave it for now. When we will create the React application, then whatever we have in the companion and its setup, we will do it here and if you see below, then you can create your website related to the application. You can add the author name here like I write tracking provide, after that you can also write the license here like I erase it and then whatever dependency you install, it will be automatically added here. Let's take this and whenever there is a change in the file like packet or even if you change the file then the server has to be restarted, we close it, now what can we do here, we can create the server, so first of all We will create the basic server here, so what do you have to do for that, here we will have to initialize the express, then we will retire the express, so here we have initialized the express i.e. imported it, after that we will also add the colors here. We will add and initialize the TNP package as well and we will do more than half of the setup because we do not have to change it later, so we are setting up the requirements and what we have to do after this is the rest object here. But if you have to create a rest object, along with me, I will also make a little comment. What you have to do for the rest object is to create a variable here, constant app equal to express of express of, so all the features of express which are in this app object . You can do it like here we will do it, first of all we have to do the package of app.us of Morgan and inside Morgan you have to do depth in it, what will we do with this, there is no issue of card or parts, that is why what we will do inside Express. If we get the option of Jason parts then we will do that so here you have to write then none you will get to see the error related to Pal Singh, what will happen whenever you send any Jason object inside the request body then You may get to see the error if you add this object or body partial, even if you install the package separately, the error will go away. Here the middleware has been setup, after that we have to set the routes here. So here you can write the routes like first of all we will keep the slice inside the app dot i.e. the home page will be there and after that the call back function here is the normal aero function, inside that we get the call back, so inside this we will put the request and response. So how will we handle it? It is very simple. What you have to do is to use the response here. I add the message here. Let's do this with server learning. And now what will we do? What can we do to the application as well? There is some port on which you can run it. What we will do is first of all create a new file in the root, inside it we will create a variable with the name of port and in companion, here I will write what is the underscore mode i.e. development mode, so here we will write, whatever its mode, we will keep it from development. Let's do this and the server will listen on boot and first of all for the port, we have created the port inside process.pnb.cnb, we will do it here or alternatively what we will do is provide it, then send it to the environment here. The port available there will be taken automatically, it is still in development, so here we will get the correct AT, now we have to listen and I will change its comment, I will make it on the top and here I will add the comment . Now you have to do the lesson, where will you do it in app dot lesson listen, you have to add the variable of port and after that it will also return a call back to us which is the function and inside this we will lock the control dot and Here I do it and here I write these dollars, what we will do here is add the mode, we will also show it dynamically here, so let's process it and also what I have to do is the colors here. We can also package it, so we have imported the colors, let's check, see if the colors have been imported, then we can also show the colorful message in the console, so what you have to do is to write this tablet here. After this, what you have to do is to put a dot and here we will write and make the remaining text white. If you do not know the colors model, then you can see its documentation. I said what should you do, send all the packages van by van. You can check like here, I will tell you once again by searching the color, the colors are exactly match because we know the name, so see something like this in this way, you get the console on the terminal which is colorful, so let's start with our basic server. It has been created, now we will test it, so what can you do from here, you can write the command of 'nam start' or what will we do which we have run it through noteban, let's see what I do, see the script that we have added here. For demonetization, we had added the earning of the server, I execute it here, if the server runs successfully, then we will get the message, it could be due to this, but if it is not configured, then we will configure it first from here. What you have to do is to add a comment and what we will do in it is by commenting, we will rest it here or we will reduce it on the client, we will create it from the REST API again.