Install nodemon globally
- nodemon is used in development to restart the server automatically when it detects changes in source files.
npm install nodemon -g
Install nodemon in project
- Added nodemon as Dev Depdendencies
npm install nodemon --D
"scripts": {
"dev": "nodemon ./bin/www"
}
Run the Server
SET DEBUG=project-api:* & npm run dev