Auto-reload for express.
npm install the-freshmaker
Add the following to your express app.
const express = require("express")
const app = express()
// Require the-freshmaker and pass in the variable for your express app.
require('the-freshmaker')(app)
Add the following to webpages you want to restart when there is a change on the server.
<script src="/the-freshmaker-client.js" type="text/javascript"></script>
npm install -g nodemon
nodemon --config nodemon.json app.js
{
"watch": ["app.js", "public", "routes", "lib"],
"ext": "js, css, html"
}