Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
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 GitHub, check out this course.
If you’re familiar with 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?
Let's start Visual Studio.
I'm using Visual Studio community, which you can download and install for free.
See the teachers notes for more information.
I want to track the changes that we're going to make to our project, so
I created a GitHub repo before recording this video.
If you're following along and want to use GitHub Go ahead and pause the video so
you can create and clone your repo.
This step is optional.
So while I'd encourage you to practice using GitHub
to manage your project source code, you can skip this step if you want.
If you're unfamiliar with GitHub or how to work with GitHub within Visual Studio,
see the teacher's notes for links to additional resources.
Let's open a File Explorer window, and browse to the root of our repo.
From the C Drive on my machine, it's Users, Howard,
Source, Repos, and then fitness-frog.
I'll make a new folder named SRC for source so
we can keep our source code separate from any other files like documentation
that we might later keep in our repo.
Now let's download the project files.
You can find a link to the project files in the teacher's notes.
I've already downloaded the zip file to my desktop.
I'll right click on the file, and select the Extract All menu item.
Make sure that that Show extracted files when complete check box is checked and
click the Extract button.
Once the files have been extracted, select and
copy them to the clipboard by pressing Ctrl+A, then Ctrl+C.
Switch back to our repo source folder, and
press Ctrl+V to paste the files from the clipboard.
In Visual Studio we can now see the Treehouse.FitnessFrog.sln
here in the home panel solution section, double click it to open it.
If you're prompted with a security warning go ahead and click the OK button.
If you didn't know or trust the source of the project that you are opening,
you'd want to consider if you should proceed.
But in our case, we know the project came from a trustworthy source.
Here in the Solution Explorer, we can see our project's files and folders.
Before we go any further, let's press Ctl + Shift + B to build our solution.
Great, our solution successfully builds.
Let's recap the MVC design pattern and
how it relates to the structure of an ASP.NET MVC project.
MVC, is an acronym that stands for Model-View-Controller.
The model represents the data in our web app or application.
The View is the Visual part, and the Controller is the Coordinator.
When users browse to a specific page in our web app,
the Controller is responsible for coordinating what specific
actions need to be performed in order to return a response for that user request.
Our project has a folder for each of the parts of the MVC design pattern.
The Models folder contains our models, the Views folder contains our views,
and the Controllers folder contains our Controllers.
After the break, we'll review our project files
starting with a look at the entry's controller class.
You need to sign up for Treehouse in order to download course files.Sign up