Nodemon is a utility that monitors for changes in your source code and automatically restarts the server when changes are detected. To use Nodemon, you'll need to install it globally or locally in your project, and then you can start your server with Nodemon.
npm install -g nodemon
npm install --save-dev nodemon
nodemon server.js