课程: React: Creating and Hosting a Full-Stack Site

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Automatically updating with Nodemon

Automatically updating with Nodemon

- [Instructor] Alright, so now that we've created one useful endpoint for our blog backend, let's take some time to make our lives a little bit easier going forward and see how we can avoid having to manually restart our server every time we make a change to our code, right? Wouldn't it be nice if our server could sense when our files changed and automatically restart itself? Well, as a matter of fact, there is an NPM package that does this for us, and it's called no-daemon. Now, you might hear the name of this package pronounced a little bit differently depending on who's talking, but let's just install it, which we can do by stopping our server. And we're going to say, npm install nodemon, right? So again, you'll hear this pronounced sometimes Node Man, you'll hear it pronounced No demon, or I usually say No demon because that makes the most sense to me. But one last thing that we're going to do is we're going to add the save dev flag when we install this because this package is…

内容