DEV Community

S. M. Ahad Ali Chowdhury
S. M. Ahad Ali Chowdhury

Posted on

nodemon install and work with backend(express and mongo)

  1. First download the nodemon package
    for globally
    npm i -g nodemon
    OR
    npm install --global nodemon

      for locally
    
          npm i nodemon 
                   OR
          npm install --save-dev nodemon
    
  2. go to your "package.json" file and go also "scripts" object and write

"scripts": {
"start": "nodemon (your main js file, where you do main work like server connect => for example , app.js)"
},

that's it

  1. Now you can try your terminal npm start for starting this app

good day

Top comments (0)