https://github.com/rahulstech/node-express-basics
learning express js
https://github.com/rahulstech/node-express-basics
Last synced: 5 months ago
JSON representation
learning express js
- Host: GitHub
- URL: https://github.com/rahulstech/node-express-basics
- Owner: rahulstech
- Created: 2025-01-13T03:15:05.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-01-16T07:43:24.000Z (5 months ago)
- Last Synced: 2025-01-16T08:37:42.243Z (5 months ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
## Learning Express Js
in nodejs 18 and above auto rerun feature is build in. need to run the script in following way
```bsh
node --watch index.js
```
this will keep running the index.js whenever there is any changes only in index.js and index.js runs without throwing any error.
to rerun the script whenever any file in a directory changes, run the script with the following command```bsh
node --watch-path=src index.js
```
the command watch changes in src directory,and if there is any change then it rerun the index.js utill index.js
runs without throwing any error. i can watch multiple path just by adding more '--watch-path=/path/to/other/directory'. before node 18 it is achived via nodemon package; but node 18 onwards this feature is builtin. so, no need for nodemon anymore.### Projects:
1. [**EventManager**](/eventmanager/ReadMe.md)