Join Shaun Wassell for an in-depth discussion in this video Automatically updating with nodemon, part of React: Creating and Hosting a Full-Stack Site.
- [Instructor] So you may have noticed … that until now we've had to manually restart our server … every time we make a change to our code … when our files changed and automatically restart itself. … Well, as a matter of fact, there's an MPM package … that does this for us, and it's called nodemon. … Let's install this package into our project … dash dash save dev … nodemon. … And once that installs all you have to do is … Now instead of running NPX Battle Node, … we're going to write NPX … nodemon … And all we're doing here is telling nodemon … to rerun whatever command we put after … the dash dash exec flag whenever our files change. … If we hit enter … we can see that our server will start up. … to our files and save it, … And this makes our life a lot easier. … So now if we change this and add, … for example, and exclamation point after it … And then if we go here and make a request, … we can see that it automatically restarted … Now this nodemon command might be … we're going to make one more small change …
- Creating the app component
- Using React-Router links
- Setting up an Express server
- Route parameters in Express
- Adding the comments functionality
- Installing and adding MongoDB to your project
- Rewriting the endpoints
- Adding React hooks
- Adding buttons and forms
- Pushing code to GitHub
- Running a full-stack app on AWS
Skill Level Intermediate
1. Creating a React Front End
2. Creating a Node Back End
3. Setting Up MongoDB
4. Connecting the Front and Back Ends
5. Hosting the Site
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.