This is how can i run my server nodejs , i need to liverealord my server when i make changes to the code in the front-end dev
"start": "node server.js"
This is how can i run my server nodejs , i need to liverealord my server when i make changes to the code in the front-end dev
"start": "node server.js"
You can use nodemon.
It will watch your project's files and restarts the server when you change them.
You can install it globally:
the run it on your projects directory
You can also add it to your project's dev dependencies and use it from an npm script:
Then add a simple script to your
package.json
:then you can simply run the following command: