Getting Started3:18 with James Churchill
Ready to download and setup the project files for the Fitness Frog web app?
You can download a ZIP file of the project files at http://treehouse-project-downloads.s3.amazonaws.com/aspnet-fitness-frog.zip.
Visual Studio Community
Visual Studio Community is a free version of the popular Visual Studio IDE (Integrated Development Environment). You can download the Windows installer from this web page.
ASP.NET on Mac OS X and Linux
Currently, the only way to develop and run ASP.NET websites on a Mac or Linux computer is to install and use an open source version of the .NET Framework known as Mono. All of that changes this year, when Microsoft releases a new version of ASP.NET, ASP.NET Core 1.0.
If you want to learn how to use Mono on a Mac or Linux computer, here are some resources that will help get you started:
- About Mono
- Installing Mono on Mac OS X
- Installing Mono on Linux
- Running ASP.NET Applications Using Mono
For more information about ASP.NET Core 1.0, see these resources:
If you’re new to Git or GitHub, check out this course, which will give you an introduction to the Git version control system.
If you’re familiar with Git and GitHub, but are new to Visual Studio’s integration with GitHub, this workshop will get you up and running.
If you haven’t learned the basics of ASP.NET MVC or need to brush up on it, check out Treehouse ASP.NET MVC Basics course.
CTRL+SHIFT+B- Build the current Visual Studio solution
CTRL+A- Select all files in a folder
CTRL+C- Copy the current selection to the clipboard
Ready to set up our project? 0:00 Let's start Visual Studio. 0:02 I'm using Visual Studio community, which you can download and install for free. 0:03 See the teachers notes for more information. 0:08 I want to track the changes that we're going to make to our project, so 0:12 I created a GitHub repo before recording this video. 0:16 If you're following along and want to use GitHub Go ahead and pause the video so 0:20 you can create and clone your repo. 0:25 This step is optional. 0:27 So while I'd encourage you to practice using GitHub 0:28 to manage your project source code, you can skip this step if you want. 0:31 If you're unfamiliar with GitHub or how to work with GitHub within Visual Studio, 0:35 see the teacher's notes for links to additional resources. 0:40 Let's open a File Explorer window, and browse to the root of our repo. 0:43 From the C Drive on my machine, it's Users, Howard, 0:48 Source, Repos, and then fitness-frog. 0:53 I'll make a new folder named SRC for source so 1:01 we can keep our source code separate from any other files like documentation 1:06 that we might later keep in our repo. 1:11 Now let's download the project files. 1:13 You can find a link to the project files in the teacher's notes. 1:16 I've already downloaded the zip file to my desktop. 1:19 I'll right click on the file, and select the Extract All menu item. 1:22 Make sure that that Show extracted files when complete check box is checked and 1:26 click the Extract button. 1:30 Once the files have been extracted, select and 1:35 copy them to the clipboard by pressing Ctrl+A, then Ctrl+C. 1:38 Switch back to our repo source folder, and 1:42 press Ctrl+V to paste the files from the clipboard. 1:45 In Visual Studio we can now see the Treehouse.FitnessFrog.sln 1:48 here in the home panel solution section, double click it to open it. 1:53 If you're prompted with a security warning go ahead and click the OK button. 1:57 If you didn't know or trust the source of the project that you are opening, 2:02 you'd want to consider if you should proceed. 2:06 But in our case, we know the project came from a trustworthy source. 2:08 Here in the Solution Explorer, we can see our project's files and folders. 2:12 Before we go any further, let's press Ctl + Shift + B to build our solution. 2:16 Great, our solution successfully builds. 2:21 Let's recap the MVC design pattern and 2:24 how it relates to the structure of an ASP.NET MVC project. 2:27 MVC, is an acronym that stands for Model-View-Controller. 2:31 The model represents the data in our web app or application. 2:36 The View is the Visual part, and the Controller is the Coordinator. 2:40 When users browse to a specific page in our web app, 2:45 the Controller is responsible for coordinating what specific 2:48 actions need to be performed in order to return a response for that user request. 2:51 Our project has a folder for each of the parts of the MVC design pattern. 2:57 The Models folder contains our models, the Views folder contains our views, 3:01 and the Controllers folder contains our Controllers. 3:08 After the break, we'll review our project files 3:12 starting with a look at the entry's controller class. 3:15
You need to sign up for Treehouse in order to download course files.Sign up