![]() ![]() Quickly, it gets annoying to have to restart the entire project for small changes during development. These are oftentimes small changes, such as changing the color of a button, or adding an element in a given position. If you've changed the files - the new state is used and the application is updated when run again.ĭuring development - we typically start and stop applications many times to "test out" whether something we wrote works as expected. ![]() Once you stop the application, the original contents of the files are released from memory, and the state is lost until you load it in again by running the application. This state resides and persists in memory while the application is running, so even if you modify the source files - this isn't reflected in the currently running application. This, well, runs the Node application by loading in the latest files and their newest states, and using them as they are. Traditionally, when we run Node applications, we use the node command along with the file name: $ node app.js ![]() In this guide, we'll take a look at how to integrate Nodemon into your Node projects, to alleviate the hassle of restarting your projects every time you make a change, and increase the speed of development. It also offers some unique features, such as the ability to watch a directory rather than simply files, as well as to ignore particular files that may be present in a given directory. Nodemon is an open-source utility package that keeps track of the changes made to your source code and restarts your project server automatically when new modifications are made. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |