Skip to content

Instantly share code, notes, and snippets.

@rupeshtiwari
Created August 6, 2021 20:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rupeshtiwari/fb7d1403b6905d123ced3692cce5b64f to your computer and use it in GitHub Desktop.
Save rupeshtiwari/fb7d1403b6905d123ced3692cce5b64f to your computer and use it in GitHub Desktop.
nodemon example

nodemon example

nodemon is used to watch your file and re-run the npm script automatically. This is useful when you are doing server side programming in node.js.

Step 1: Install nodemon

npm i -D nodemon

Step 2: Watch file

  "scripts": {
    "server": "nodemon server/index.js",
    "server:once": "node server/index.js"
  },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment