From the course: Building Modern Projects with React

Exercise files

From the course: Building Modern Projects with React

Start my 1-month free trial

Exercise files

- [Instructor] If you decide to use the exercise files that I've included to follow along with the course, there are a few things you should know first. The first is that the exercise files are organized by video. So, for example, the code for video seven in section two will be in a directory called 02_07, and this will contain both the start and end state of the code in that video. Now, assuming you want to run the code for that video, there's a few steps you'll have to follow. The first thing you'll have to do is open up a terminal inside the directory you want to run. So if we want to run the end state of 02_07, we would change into that directory by typing cd 02_07/End. And then once we're in that directory, we need to run npm install, and hit Enter. And that'll run for a few seconds. But once it finishes, all you have to do is run npm run dev, and the application should run successfully. Another thing to note is that if you pick up the course sometime in the middle, during section four or later, there's a server that you'll have to run locally in order for the code to work correctly. This code is available for download alongside the exercise files. And in order to actually run this code, you'll need to run npm install in that directory, just like we did with our exercise files. And once we've done that, you simply need to run npm run start, and hit Enter. And the server should start up correctly. So that should be all you need to know to run the exercise files for this course.

Contents