CTEC2402: Sofware Development Project

Creating an MVC4 Project

The main Microsoftw Web site supporting MVC is the Asp.Net web site. This site contains a range of videos and tutorials on MVC. The site can however be difficult as it is not always clear which version of MVC a particular video or tutorial is refering to.

Videos are good for on the whole being a clearer demonstration of how to do something, and they also contain more explanation and discusion of alternatives. However they are not so good if you have forgotten some details and want to quickly find it again. Therefore I am going to recommend both a video and a tutorial for each topic covered.

  • Tutorial: Getting Started with ASP.NET MVC4. This is based on a Movie database and covers creating an Internet based MVC4 project, and almost all the stages are relevant. It does however update the database using code migrations rather than the way shown below in DB Seeding.
  • Tutorial: Music Store Overview. Although this is an MVC3 example it is a very detailed tutorial, and everthing in it will work in an MVC4 application, including the Shopping Cart.
  • Video: Intro to ASP.NET MVC4. This is now a new set of videos based on the OdeToFood web site and uses Windows 8 and MVC4. This first set of videos covers installing software (Visual Studio 2012), creating an MVC4 project and the principles of how MVC works. Look at:-
    1. Introduction
    2. Web Platform Installer
    3. The Tools
    4. New Project
    5. Models, Views Controllers
  • Although MVC has been up till now a completely code based approach, Visual Studio 2012 contains a Page Inspector which will display the view pages in design mode, and at the same time displays the HTML and css codes that apply to each page element selected.