diff --git a/en/starter/generator.md b/en/starter/generator.md index a95c9dcbfe..2bc41af447 100755 --- a/en/starter/generator.md +++ b/en/starter/generator.md @@ -74,6 +74,20 @@ Then install dependencies: ```bash $ cd myapp $ npm install + +## Using Nodemon for Live Server Restarting +Nodemon automatically restarts your Node.js server whenever you make changes to your files — perfect for development. + Installation +npm install --save-dev nodemon +Add to Scripts +In your package.json: +"scripts": { + "start": "nodemon server.js" +} +Run the Server +npm start +or +npx nodemon server.js ``` On MacOS or Linux, run the app with this command: