CarTrackr - Sample ASP.NET MVC application

Edit on GitHub

CarTrackr - Sample ASP.NET MVC application Some people may have already noticed the link in my VISUG session blog post, but for those who didn't... I've released my sample application CarTrackr on CodePlex.

CarTrackr is a sample application for the ASP.NET MVC framework using the repository pattern and dependency injection using the Unity application block. It was written for various demos in presentations done by Maarten Balliauw.

CarTrackr is an online software application designed to help you understand and track your fuel usage and kilometers driven.

You will have a record on when you filled up on fuel, how many kilometers you got in a given tank, how much you spent and how much liters of fuel you are using per 100 kilometer.

CarTrackr will enable you to improve your fuel economy and save money as well as conserve fuel. Fuel economy and conservation is becoming an important way to control your finances with the current high price.

Go get the source code for CarTrackr on CodePlex! (note that it has been updated for ASP.NET MVC beta 1)

Technologies and techniques used

Here's a list of technologies and techniques used:

  • CarTrackr uses the Unity application block to provide dependency injection
  • The repository design pattern is used for building a flexible data layer
  • Controllers are instantiated by using a custom ASP.NET MVC ControllerBuilder, which uses Unity for dependency resolving
  • The testing project makes use of Moq to mock out parts of the ASP.NET runtime
  • Form validation is included on most forms, leveraging the ViewData.ModelState class
  • It is possible to sign in using OpenID, for which the ASP.NET MVC Membership starter kit was used
  • LinqToSQL is used as the persistence layer
  • CarTrackr uses my ASP.NET MVC sitemap provider
  • Configuration Section Designer was used to create a custom configuration section
  • Extension methods are created for including Silverlight charts (rendered with Visifire)
  • Web 2.0 logo creator was used to generate a classy logo

kick it on DotNetKicks.com

This is an imported post. It was imported from my old blog using an automated tool and may contain formatting errors and/or broken images.

Leave a Comment

avatar

5 responses

  1. Avatar for Shay Jacoby
    Shay Jacoby October 24th, 2008

    Thanks for the great Post.
    These kind of Projects are the best way to Study.

    Shay.

  2. Avatar for Rem
    Rem November 4th, 2008

    Nice post...

  3. Avatar for NVP
    NVP January 6th, 2009

    Nice one,

  4. Avatar for Vitor
    Vitor January 28th, 2009

    How do I solve this?
    Error1The type or namespace name 'ValidateAntiForgeryToken' could not be found (are you missing a using directive or an assembly reference?)D:\Projetos\Estudo\Car\CarTrackr\Controllers\CarController.cs10710CarTrackr

  5. Avatar for maartenba
    maartenba January 28th, 2009

    Makwe sure to add a reference to the Microsoft.Web.Mvc.dll in the \References folder.