Complete the code to import the Express module.
const express = require([1]);To use Express, you import it with require("express").
Complete the script command to run the app with nodemon.
"scripts": { "start": "node app.js", "dev": "[1] app.js" }
Use nodemon app.js to run the app with automatic reload on changes.
Fix the error in the nodemon config file to watch the correct folder.
{
"watch": ["[1]"]
}To reload on source code changes, nodemon should watch the src folder.
Fill both blanks to create a nodemon config that restarts on .js and .json changes.
{
"ext": "[1]",
"ignore": ["[2]"]
}Set ext to watch JavaScript and JSON files, and ignore node_modules folder.
Fill all three blanks to add a nodemon script, install command, and start command.
{
"scripts": {
"[1]": "nodemon app.js",
"install": "npm install nodemon --save-dev",
"start": "node app.js"
}
}The dev script runs nodemon, npm install installs nodemon, and nodemon is the command used.
