In this video.
Let's see how to avoid this problem that is restarting our server manually.
Any time we make changes to our server and we are going to use a package called Node one, so let's
install that package.
Let me clear my terminal here and make use of NPM install node mount because not one is going to help
us only in the development mode.
We are going to install the package as dev dependencies.
So let me hit enter.
Now no one is installing.
So after installing, let's go ahead and configure our package dot JSON file.
Now everything is set.
Now back to the packet or JSON file here.
So inside the script, I'm going to add a custom script to run my server using.
Not so our MEC is a comma and then a key of server.
The name can be anything.
Then inside the value here I'm going to use not born to run the file that is server dot g's.
So now instead of using start, that is node.
To run our server we are going to use Node born with a key core server.
So now I'm back to my terminal here, let me play the console.
Now I'm going to make use of NPM run server and if can see that our server is up and running and let's
look at this node monster is that to restart at any time enter r s.
So when I make use of our s hit enter it means that I'm restarting the server.
So here it says that no one is watching extension, dot, js, megs and JSON.
It means that for this file any time changes is going to run our server automatically.
So now let's back to the file here.
Let's say that I want to make changes.
I want to add that dot to this text here when I save it.
Now have a look.
You can see that it has worked restarted.
So if I make a request to single or here is single.
Okay, let me save it.
So now if I make a request to this endpoint called get, so let me use the client here and now the request
here to make use of.
Yeah, this is the end point.
When I hit send you can say that I get the dot without restarting the server.