Join Ray Villalobos for an in-depth discussion in this video Working with the exercises, part of AngularJS 1: Adding Registration to Your Application.
- [Narrator] All of the files for this course are freely available in GitHub for all users at this URL. In GitHub, you'll see that the project is organized into branches. Each branch corresponds to a video in the course. They are named according to the video they correspond to. So, if you see a branch that starts with a name like 0102, that means that the branch corresponds to the first chapter and refers to the second video in that chapter. Also, if you see an b at the end of the name, those are how the files looked at the beginning of the video, and if you see an e at the end of the name, that's how the files looked at the end of the video.
The best way to work with the project is to clone all the branches at once. In order to do that, you need Node.js as well as Git installed. You can find Git and download the installer for your platform at this URL. You can also find Node.js and download the installer at this URL. When you install Git, make sure you add the Git BASH terminal in Windows. It makes running the commands more consistent. So, let me show you how to clone all the branches for this project.
First, I'm going to go back at the GitHub repo, and I'm going to click on this button, and then this button to copy the URL to the repository. Next, I'm going to open up a terminal, because I'm in a Mac. On a PC, I would open up something like Git BASH, or anything that is compatible with Unix terminal commands. Once I do that, I want to make sure that I'm in the desktop. So, I'm going to do a cd, space, ~, /Desktop command, and then I going to create a directory with the mkdir command.
I'll call this angular registration. Next, I'm going to switch to that directory using a cd command, or change directory command. Now I can issue my git clone command. It's going to be a little bit different than normal. So it's going to be a git clone command with a -- bare option. That's going to download pretty much just the contents of the Git folder. So, now I'm going to paste the URL and then I'm going to add an additional .git.
Once this is done, I need to convert this to a regular repository. So, I'm going to use the git config and change a variable called core.bare to false. That means that it will no longer be a bare repository. Now, if I issue the git reset, --hard command it will convert this to a regular repository, and, in addition to that, it's going to download all of the branches for this project. Let's go ahead and clear this out and then issue a git branch command.
You can see that in addition to the master branch, I have every other branch in this project. The next thing to do is to install the project's dependencies we'll need for this project to run properly. In order to do that, I need to issue an mpm install command. Let's go ahead and clear this screen out, and then issue an mpm install command. If you see any errors on a Mac, on this screen, make sure that you use this pseudo-command at the beginning at the mpm install command.
- Adding a basic MVC structure
- Using routes
- Creating controllers
- Processing form input
- Integrating Firebase
- Storing registration information in the database
- Logging users in and out of an app
- Improving registration flow