Developing sites using ASP.NET MVC
Kentico supports website development using ASP.NET MVC 5. The support is based on a separate MVC application while Kentico functions as separate application that you use as a content platform.
Both Kentico and the MVC application access data from the same database and use the Kentico API. Content synchronization of, for example, smart search indexes, is handled by web farms. This approach allows you to separate the live site (MVC application) and the administration (Kentico).
This means that you use Kentico to store data and manage content (mostly via pages), and generate the entire design of the site using your own MVC controllers and views.
Kentico’s Pages application is a repository for content consisting of content only pages. The content itself is entered and modeled by content editors based on a content structure created by developers. Developers take care of how the content is displayed on the live site via the MVC application.
Requirements and limitations
You will need the following configuration for MVC projects:
- .NET Framework: .NET Framework 4.5 / 4.5.1 / 4.6.
- Visual Studio: Visual Studio 2013 or higher (for MVC 5 support).
License requirements
You only need to purchase a license for the MVC application. The extra license for the Kentico administration and an extra web farm server is provided for free. See Kentico licensing for MVC applications for further details.
Supported Kentico features
For the list of currently supported Kentico features that you can use when developing sites using ASP.NET MVC, see Supported and unsupported Kentico features on MVC sites.
ASP.NET MVC development process in Kentico
The following section contains a brief overview to get you started with site development using ASP.NET MVC. You can find a more detailed explanation of the covered areas in the linked pages.
- Create and set up an MVC application
- Start with MVC development by setting up your Kentico instance and the MVC application.
- Define site content structure
- In Kentico’s Pages application, create a content structure based on the individual content only page types you are using in your MVC application.
- Develop the MVC application
- Use generated code for working with objects such as pages in the MVC application.
- Load page content using the Kentico API. See Retrieving content on MVC sites for more information.
- Provide additional functionality on your MVC site. See Developing MVC applications for more information.
- Deploy your MVC application
- Learn how to set up staging or deploy your MVC application to Microsoft Azure.