Wednesday, May 12, 2010

“Introduction to ASP.NET MVC by Coding a Cool App” (aka the MVC Music Store Application and Tutorial)

Jon Galloway - Introducing the MVC Music Store - MVC 2 Sample Application and Tutorial

“A couple weeks ago we did a soft release of a new ASP.NET MVC 2 Tutorial and Sample Application I’ve been working on over the past few months, the MVC Music Store. The source code and an 80 page tutorial are available on CodePlex. I’m also working on a video tutorial series for the ASP.NET website which will walk through building the application. After that, it’s time to talk about a feature length film and a worldwide MVC Music Store On Ice tour, but the plans aren’t completely set just yet.

Who is this for?

This tutorial is mostly written for beginners to ASP.NET MVC, including folks who are kind of new to web development. We already have a few tutorials out there at the intermediate to advanced developer level (Nerd Dinner, MVC Storefront) if you’re looking for something more advanced, but if you want to start with the basics of how ASP.NET MVC works before diving into repositories and IoC and TDD, this is a great place to get started.

However, I think it’s also pretty useful if you’ve got some experience with ASP.NET MVC 1.0 but want to get a look at using some of the new features in ASP.NET MVC 2, especially model validation.

What’s it cover?

Store features:

  • Store browse
  • Shopping cart
  • Checkout
  • Membership and registration
  • Basic administration (add and edit albums)

Tutorial covers:

  • ASP.NET MVC Basics
    • Controllers
    • Views
    • Models and ViewModels
  • Data access using Entity Framework 4
  • Model Validation
  • Editor and Display Templates
  • Use of ASP.NET Membership system
  • Client-side enhancements
    • Client-side validation
    • AJAX update showing both Ajax.ActionLink and jQuery

How’s the code?

I think this is a great tutorial sample, and I’m really proud of it. I spent a lot of time on it, and I had several reviews with Scott Guthrie and Scott Hanselman, as well as Phil Haack and Brad Wilson from the ASP.NET team. I’m hugely thankful to all of them for their input and patience, but of course I’ll take responsibility for any errors or killed kittens.

This is a beginner tutorial, so the code focuses on communicating how ASP.NET MVC works…

image …”

CodePlexASP.Net MVC Music Store

Project Description
MVC Music Store is a tutorial application built on ASP.NET MVC 2. It's a lightweight sample store which sells albums online, demonstrating ASP.NET MVC 2's productivity features and data access via Entity Framework 4. See what you can do with MVC 2 in under 1000 lines of c# code!


  • Demonstrates ASP.NET MVC 2 Templating, Data Annotations, and Validation
  • Shows Client-Side Validation, jQuery, and use of AJAX helper methods
  • Includes store browse, shopping cart, checkout, and membership
  • Shows data access via Entity Framework 4
  • Illustrates use of ViewModels
  • This tutorial requires Visual Studio 2010 and ASP.NET 4.0

image …”

From the PDF in the release;


Since I’m not currently a web, nor MVC, guy this tutorial appeal to me. That and I greatly appreciated the effort that went into the guide/pdf. This is more like a 80 page eBook “Intro to MVC by Coding a Cool App” than anything else. Nice!

No comments: