Skip to content

Commit b9a29a5

Browse files
authored
Add Nodemon usage instructions for live server restarting
Added instructions for using Nodemon to restart the Node.js server automatically during development.
1 parent 738f860 commit b9a29a5

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

en/starter/generator.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ Then install dependencies:
7474
```bash
7575
$ cd myapp
7676
$ npm install
77+
78+
## Using Nodemon for Live Server Restarting
79+
Nodemon automatically restarts your Node.js server whenever you make changes to your files — perfect for development.
80+
Installation
81+
npm install --save-dev nodemon
82+
Add to Scripts
83+
In your package.json:
84+
"scripts": {
85+
"start": "nodemon server.js"
86+
}
87+
Run the Server
88+
npm start
89+
or
90+
npx nodemon server.js
7791
```
7892

7993
On MacOS or Linux, run the app with this command:

0 commit comments

Comments
 (0)