eolas/Programming_Languages/Node/Modules/Third_party/Nodemon.md

14 lines
503 B
Markdown
Raw Normal View History

2022-07-12 19:30:03 +01:00
---
2022-09-06 15:44:40 +01:00
categories:
- Programming Languages
2022-07-12 19:30:03 +01:00
tags:
- backend
- node-js
---
# Nodemon
2022-09-06 15:44:40 +01:00
We don't want to have to restart the local server every time we make a change to our files. We can use `nodemon` instead of `node` when running our `index.js` file so that file-changes are immediately registered without the need for a restart.
2022-07-12 19:30:03 +01:00
2022-09-06 15:44:40 +01:00
This is a wrapper around the `node` command so it doesn't require any configuration. Once installed, update your start script from `node index.js` to `nodemon index.js`.