Let us know about the software requirements , Templates allowed and folder structure of an Asp.Net MVC Application

Saratvaddilli
Posted by in ASP.NET MVC category on for Beginner level | Points: 250 | Views : 3176 red flag
Rating: 4 out of 5  
 1 vote(s)

In this article we are going to know the software requirements to work with asp.net mvc4 and Supported Templates , Folder structure of an Asp.Net MVC4 application

Introduction

In My last article we had seen the advantages of MVC architecture when compared to the traditional Asp.Net Webpages.Now let us see the minimum software requirements and supported templates , Folder structure in Asp.Net MVC4  

Software Requirements



 Operating system :
    Asp.Net MVC4 requires at least any of these OS specifications .
     1)Windows Xp : With server pack SP3 Installed
     2)Windows Vista : With server pack SP1 Installed
     3)Windows 7
     4)Windows 8
     5)Window's server :2003,2008,2012

DotNet Framework :
    The Minimum dotnet framework required  is 4.0

Visual Studio Specifications :
    1)VS2010 :  With server pack SP1 Installed
    2)VS2010 express for web :  With server pack SP1 Installed
    3)VS2012
    4)VS2012 express for web.

These are the minimum software requirements to develop Asp.Net MVC4 Application.


How to create an Asp.Net MVC4 application



 To create an Asp.Net MVC4 application please follow these steps .

1)Open visual studio -> Go to New Project
2)Under visual c# -> Go to Web
3)Select Asp.Net MVC4 Web Application
4)Give the name to the application and location where to save the application




Templates Supported

  After giving the file name and location  please click ok , It will navigate you to the another screen where you can select the template and view engine




  In this screen we can see the templates that are supported .In addition to these we have single page and Facebook app template also .We will discuss later about each template in depth .
Now i was selected  internet application template : It is used to create a complete working asp.net mvc4 website.In this template by default forms authentication is implemented

View Engine

After selection of the template , we can see a drop down list  for view engine .As we discussed earlier a view engine is one which is responsible for User Interface . By default .Net Framework supports two types of view engines

  1. Aspx
  2. Razor

Aspx view engine is one which supports web server controls of .Net  .Razor will use pure html5 contents . So the application developed with razor engine will result in high performance when compared with Aspx. We can also use third party tools like spark ,nhaml but recommended to use razor view engine .


Unit test project

  If you want to create an  unit test project , you can create it by checking the check box 'Create a unit test project' and then click OK.

 Finally it will start creating MVC4 application



 
  

Folder Structure of the application

 
  Let us see about the folder structure of the application :




Hurry our first application has been created and we can see the folder structure above .

Let us see about the data which we are going to store in each folder .
 1)App_Data : In this folder we will store all the DB files which are required for the application

 2)App_Start : In this folder we will store all the configuration files which are required for the implementation of       Authentication ,Routing ,Filtering .

 3)Content     :  In this folder we will store all the files that are required for the design (CSS Files)

 4)Controllers : In this folder we will store all the controllers that are required for the application .We will discuss more about controllers in the coming articles

 5)Filters         : In this folder we will store all the custom attributes that can be used to provide basic behavior for action methods in the controllers

 6)Images      : In this folder we will store all the Image files which are required for the application

 7)Models      : In this folder we will store all the models that handle data and business logic in the application

 8)Scripts      : In this folder we will store all the script files which are required for the application

 9)Views         : In this folder we will store all the Views  which are required for the application .View contains html content related to the User Interface


Conclusion

Hope you had a clear idea about the requirements , Templates and folder structure . We will discuss in depth regarding Templates , Model,view and Controllers in the upcoming articles

Page copy protected against web site content infringement by Copyscape

About the Author

Saratvaddilli
Full Name: vaddilli sarat
Member Level: Bronze
Member Status: Member,MVP
Member Since: 7/30/2012 3:54:23 AM
Country: India
Thanks and Regards V.SaratChand Show difficulties that how difficult you are
www.dotnetfunda.com
I am sarat vaddilli working on the cutting edge technologies like html5,css3, Jquery and MicroSoft technologies like Asp.Net,Asp.Net MVC, SQL Server.

Login to vote for this post.

Comments or Responses

Login to post response

Comment using Facebook(Author doesn't get notification)