DEV Community

Cover image for execute the start script with Nodemon
khaled-17
khaled-17

Posted on

execute the start script with Nodemon

in your dir
add git init
npm init

then add your info about what you need
and press enter

now we have *package.json
*

go to part of scripts

and add your starter file
my starter file is app.js

  "scripts": {
    "start": "node app.js",
    "dev": "nodemon app.js"
  }
Enter fullscreen mode Exit fullscreen mode

Then you can use command:

npm run dev

Top comments (0)