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
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
5)Window's server :2003,2008,2012DotNet Framework :
The Minimum dotnet framework required is 4.0Visual Studio Specifications :
1)VS2010 : With server pack SP1 Installed
2)VS2010 express for web : With server pack SP1 Installed
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
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
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
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 .
: In this folder we will store all the DB files which are required for the application
: In this folder we will store all the configuration files which are required for the implementation of Authentication ,Routing ,Filtering .
: In this folder we will store all the files that are required for the design (CSS Files)
: 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
: In this folder we will store all the custom attributes that can be used to provide basic behavior for action methods in the controllers
: In this folder we will store all the Image files which are required for the application
: In this folder we will store all the models that handle data and business logic in the application
: In this folder we will store all the script files which are required for the application
In this folder we will store all the Views which are required for the application .View contains html content related to the User Interface
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