1 00:00:00,330 --> 00:00:02,070 Ready to set up our project? 2 00:00:02,070 --> 00:00:03,780 Let's start Visual Studio. 3 00:00:03,780 --> 00:00:08,690 I'm using Visual Studio community, which you can download and install for free. 4 00:00:08,690 --> 00:00:11,082 See the teachers notes for more information. 5 00:00:12,780 --> 00:00:16,833 I want to track the changes that we're going to make to our project, so 6 00:00:16,833 --> 00:00:20,280 I created a GitHub repo before recording this video. 7 00:00:20,280 --> 00:00:25,190 If you're following along and want to use GitHub Go ahead and pause the video so 8 00:00:25,190 --> 00:00:27,330 you can create and clone your repo. 9 00:00:27,330 --> 00:00:28,970 This step is optional. 10 00:00:28,970 --> 00:00:31,650 So while I'd encourage you to practice using GitHub 11 00:00:31,650 --> 00:00:35,870 to manage your project source code, you can skip this step if you want. 12 00:00:35,870 --> 00:00:40,970 If you're unfamiliar with GitHub or how to work with GitHub within Visual Studio, 13 00:00:40,970 --> 00:00:43,930 see the teacher's notes for links to additional resources. 14 00:00:43,930 --> 00:00:48,530 Let's open a File Explorer window, and browse to the root of our repo. 15 00:00:48,530 --> 00:00:53,734 From the C Drive on my machine, it's Users, Howard, 16 00:00:53,734 --> 00:01:00,163 Source, Repos, and then fitness-frog. 17 00:01:01,800 --> 00:01:06,030 I'll make a new folder named SRC for source so 18 00:01:06,030 --> 00:01:11,080 we can keep our source code separate from any other files like documentation 19 00:01:11,080 --> 00:01:13,410 that we might later keep in our repo. 20 00:01:13,410 --> 00:01:16,050 Now let's download the project files. 21 00:01:16,050 --> 00:01:19,460 You can find a link to the project files in the teacher's notes. 22 00:01:19,460 --> 00:01:22,530 I've already downloaded the zip file to my desktop. 23 00:01:22,530 --> 00:01:26,090 I'll right click on the file, and select the Extract All menu item. 24 00:01:26,090 --> 00:01:30,447 Make sure that that Show extracted files when complete check box is checked and 25 00:01:30,447 --> 00:01:31,975 click the Extract button. 26 00:01:35,542 --> 00:01:38,582 Once the files have been extracted, select and 27 00:01:38,582 --> 00:01:42,700 copy them to the clipboard by pressing Ctrl+A, then Ctrl+C. 28 00:01:42,700 --> 00:01:45,160 Switch back to our repo source folder, and 29 00:01:45,160 --> 00:01:48,490 press Ctrl+V to paste the files from the clipboard. 30 00:01:48,490 --> 00:01:53,280 In Visual Studio we can now see the Treehouse.FitnessFrog.sln 31 00:01:53,280 --> 00:01:57,840 here in the home panel solution section, double click it to open it. 32 00:01:57,840 --> 00:02:02,160 If you're prompted with a security warning go ahead and click the OK button. 33 00:02:02,160 --> 00:02:06,230 If you didn't know or trust the source of the project that you are opening, 34 00:02:06,230 --> 00:02:08,630 you'd want to consider if you should proceed. 35 00:02:08,630 --> 00:02:12,400 But in our case, we know the project came from a trustworthy source. 36 00:02:12,400 --> 00:02:16,370 Here in the Solution Explorer, we can see our project's files and folders. 37 00:02:16,370 --> 00:02:21,470 Before we go any further, let's press Ctl + Shift + B to build our solution. 38 00:02:21,470 --> 00:02:24,570 Great, our solution successfully builds. 39 00:02:24,570 --> 00:02:27,030 Let's recap the MVC design pattern and 40 00:02:27,030 --> 00:02:30,750 how it relates to the structure of an ASP.NET MVC project. 41 00:02:31,810 --> 00:02:36,550 MVC, is an acronym that stands for Model-View-Controller. 42 00:02:36,550 --> 00:02:40,430 The model represents the data in our web app or application. 43 00:02:40,430 --> 00:02:45,110 The View is the Visual part, and the Controller is the Coordinator. 44 00:02:45,110 --> 00:02:48,000 When users browse to a specific page in our web app, 45 00:02:48,000 --> 00:02:51,330 the Controller is responsible for coordinating what specific 46 00:02:51,330 --> 00:02:56,100 actions need to be performed in order to return a response for that user request. 47 00:02:57,250 --> 00:03:01,910 Our project has a folder for each of the parts of the MVC design pattern. 48 00:03:01,910 --> 00:03:08,350 The Models folder contains our models, the Views folder contains our views, 49 00:03:08,350 --> 00:03:11,340 and the Controllers folder contains our Controllers. 50 00:03:12,430 --> 00:03:15,340 After the break, we'll review our project files 51 00:03:15,340 --> 00:03:18,170 starting with a look at the entry's controller class.