1 00:00:00,410 --> 00:00:02,100 Before we review the requirements for 2 00:00:02,100 --> 00:00:05,940 the Fitness Frog API and start the design development process. 3 00:00:05,940 --> 00:00:09,162 Let's download and review the project files. 4 00:00:09,162 --> 00:00:12,210 I've already downloaded the project files to my desktop. 5 00:00:12,210 --> 00:00:14,550 If you're following along, see the teacher's notes for 6 00:00:14,550 --> 00:00:16,980 a link to download the project files. 7 00:00:16,980 --> 00:00:20,010 Once you've downloaded the zip file, extract it and 8 00:00:20,010 --> 00:00:22,890 open the solution file in Visual Studio. 9 00:00:22,890 --> 00:00:26,940 I'll be using the community version of Visual Studio 2017, 10 00:00:26,940 --> 00:00:30,090 which you can download and use for free. 11 00:00:30,090 --> 00:00:33,494 See the teacher's notes for information about Visual Studio. 12 00:00:46,387 --> 00:00:50,872 When prompted that you should only open projects from a trustworthy source, 13 00:00:50,872 --> 00:00:52,210 go ahead and click OK. 14 00:00:52,210 --> 00:00:54,227 You know these files came from Treehouse. 15 00:01:01,902 --> 00:01:04,561 Our solution contains two projects, 16 00:01:04,561 --> 00:01:09,382 a class library project named Treehouse.FitnessFrog.Shared and 17 00:01:09,382 --> 00:01:13,633 an ASP.NET project named Treehouse.FitnessFrog.Spa. 18 00:01:15,120 --> 00:01:20,280 The shared class library project contains entity framework related to classes. 19 00:01:20,280 --> 00:01:22,498 In the Models folder, we have two models. 20 00:01:22,498 --> 00:01:27,070 Activity and Entry. 21 00:01:27,070 --> 00:01:32,550 In the Data folder, we have a database context class named Context. 22 00:01:32,550 --> 00:01:38,340 And a DatabaseInitializer class that's used to seed our database with some data. 23 00:01:38,340 --> 00:01:43,460 We also have two repositories, ActivitiesRepository and 24 00:01:43,460 --> 00:01:45,170 EntriesRepository. 25 00:01:45,170 --> 00:01:50,620 Both of our repositories share the same base class, BaseRepository. 26 00:01:50,620 --> 00:01:55,820 The client app was built with knowledge of these two models and their properties. 27 00:01:55,820 --> 00:01:59,877 This means that we don't have to do any translation from these data structures 28 00:01:59,877 --> 00:02:01,663 into different data structures. 29 00:02:05,292 --> 00:02:09,229 Our ASP.NET project currently only contains the files for 30 00:02:09,229 --> 00:02:12,850 our client application built using Angular. 31 00:02:12,850 --> 00:02:19,320 It's a single page application so we only have one HTML page in our project. 32 00:02:19,320 --> 00:02:22,837 The other files in the grid of our project, 33 00:02:22,837 --> 00:02:28,898 the client-app-config.json file, the favicon, these font files, 34 00:02:28,898 --> 00:02:33,801 and these JavaScript bundles, one, two, three, four. 35 00:02:33,801 --> 00:02:38,689 And a CSS bundle were all produced from the Angular source code 36 00:02:38,689 --> 00:02:41,480 using the Angular CLI. 37 00:02:41,480 --> 00:02:44,720 These files make up the Fitness Frog client app. 38 00:02:44,720 --> 00:02:48,380 In this course, we won't be working with or reviewing the source code for 39 00:02:48,380 --> 00:02:50,390 the Angular application. 40 00:02:50,390 --> 00:02:53,580 If you'd like to learn more about Angular or to review the source code for 41 00:02:53,580 --> 00:02:56,320 that project, see the teacher's notes. 42 00:02:56,320 --> 00:02:58,430 Let's start our application. 43 00:02:58,430 --> 00:03:02,730 First, we need to set our ASP.NET project to be our startup project. 44 00:03:05,190 --> 00:03:07,775 Then press F5 or the Start button. 45 00:03:17,913 --> 00:03:20,650 Once the application has loaded into Chrome, 46 00:03:20,650 --> 00:03:24,800 we can see that an unexpected server error has occurred. 47 00:03:24,800 --> 00:03:29,630 This is the result of the client app trying to make a call to our API, 48 00:03:29,630 --> 00:03:30,830 which we haven't built yet.