By now, you might be wondering if you'll need to restart our Node application each time we make a change to our code. Ideally in development, we would like our code to be reloaded automatically each time we make a change, similar to how it works in Rails.
is a neat, open source library that we can use that does exactly that: node-supervisor (https://github.com/isaacs/node-supervisor). We install it like any other npm module, we just make sure to pass the
-g flag to install it globally, as shown in the following command:
npm install supervisor -g
In the terminal, you should now be able to run the supervisor by using the following command:
Keep this process running in a separate window. To see if ...