Learn where to find the exercise files and how to use them. Each video has a start and end state of the application and can be used accordingly to follow along.
- [Instructor] To get the exercise files, on the course page, simply click on the tab names Exercise Files, then download the zip file. Then simply extract the zip file and move the folder to your desktop. Then all you need to do is click on Exercise Files, then select the chapter we're on, and then the movie. And then you have a start and an end state for each state of the code. So basically if we start the video, then you can use those files at the start. If we're at the end of the video, these are the files at the end.
So if you want to check your code after the video is done, you can select the end to check your code. So let's go ahead and test this inside of your code editor. So for me it's Visual Code Studio, and I'm going to open the folder, and let's say for example we're using 03_03, let's use the end state, open. And then the only thing you need to do before you start your server is to make sure that you have installed all of the dependencies. So for example, let's go ahead and open up our terminal, so View > Integrated Terminal, and then we should be in that directory here, and let's just check to be sure, do an ls, and we should see the files here, so we're good.
Then all you have to do is do an nm i, or install to install all of the dependencies that you need. And once all of the dependencies are installed, all you have to do is npm run start and you're good to go. So please keep in mind that sometimes the code is a work in progress and if you run npm run start or you run start if you're using Yarn, the application won't run and may return an error. This is expected, and won't affect your ability to follow along.
- Coding the initial Express and Socket.IO server
- Coding front-end HTML
- Creating a chat with the emit function
- Setting up multiple rooms
- Coding new rooms within the namespace
- Setting up the Debug tool
- Emit cheatsheet