Logo

Maarten Balliauw {blog}

ASP.NET, ASP.NET MVC, Windows Azure, PHP, ...

About the author

Maarten Balliauw is currently employed as .NET Technical Consultant at RealDolmen. His interests are mainly web applications developed in ASP.NET (C#) or PHP and the Windows Azure cloud platform.
More about me More about me
Send mail E-mail me


ASP.NET MVC Quickly Subscribe to my RSS feed Follow me on Twitter! View Maarten Balliauw's profile on LinkedIn
View Maarten Balliauw's MVP profile

Search

Latest Twitter

    Follow me on Twitter...

    Archive

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

    © Copyright Maarten Balliauw 2012


    CarTrackr - Sample ASP.NET MVC application

    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


    Comments (5) -

    Shay Jacoby Israel |

    Friday, October 24, 2008 1:23 AM

    Shay Jacoby

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

    Shay.

    Rem United States |

    Tuesday, November 04, 2008 12:08 PM

    Rem

    Nice post...

    NVP India |

    Tuesday, January 06, 2009 7:50 AM

    NVP

    Nice one,

    Vitor Brazil |

    Wednesday, January 28, 2009 2:08 PM

    Vitor

    How do I solve this?
    Error  1  The 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.cs  107  10  CarTrackr

    maartenba Belgium |

    Wednesday, January 28, 2009 2:24 PM

    maartenba

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

    Pingbacks and trackbacks (7)+

    Comments are closed