Running your Node code with Nodemon

With the work we have done so far, after each and every change, running our updated Node code would require that we perform the following:

  1. Stop the current version of the code, if it's still running.
  2. Rerun the build process to update the out directory.
  3. Run the new version of the code.

Doing all of this, for every single small change, can quickly become boring and tiresome. But, there is a solution: we can install a watcher, that will monitor our files for changes and do everything mentioned here by itself, freeing us from the repetitive chore. Let's then see how we can set a tool to watch out for changes, and do all the steps shown on its own.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset