npm i -D nodemon in package.json add server n script "server":"nodemon server" now run app as npm run server