Hello Everyone
As you know we have started the Express.js tutorials. We already discussed the basics we learned how to install and create our server. But we had a problem if you remember the previous post. Whenever we made changes to the server file we needed to stop the server and re-run it which was pretty annoying. We have a solution for that in this video we will learn how can we rerun the server automatically without close it manually. Whenever we change and save the server file the server will automatically refresh itself. So without wasting time let's begin.
if I refresh the page nothing is happening
nodemon .npm install -g nodemon this will install the node globally. Wait for the installation it may take a few secondsAfter installation open the folder in the command prompt again type nodemon fileName in my case nodemon index.js