Kentico 10 brings support for the development of ASP.NET MVC 5 applications. This repository contains source code for Kentico integration packages and a sample Dancing Goat web application that demonstrates all supported features related to the MVC development with Kentico. To find out more about the design of the sample web application, see the How it works page in the Wiki. The page contains explanations of the decisions made when creating the application and can help you when building your own projects.
The repository consists of projects representing integration packages specified in the Kentico documentation.
There are also the DancingGoat and LearningKit projects. Both are sample ASP.NET MVC 5 applications built using Kentico. The Dancing Goat site represents a real-life website suitable for exploring the full MVC experience.
The Learning Kit is a functional website for learning purposes. It demonstrates how to implement various Kentico features on MVC websites in the form of code snippets, which you can run if you connect the website to a Kentico database. Also, the project source code is used in documentation examples.
- IIS 7.5+
- Microsoft .NET Framework 4.5+
- Visual Studio 2015 Update 1+
- Install Kentico.
- Import the Dancing Goat site from the
webtemplates/DancingGoatMvc.zip
import package. - Enable web farms in automatic mode.
- Rename the
src\DancingGoat\ConnectionStrings.config.template
file toConnectionStrings.config
. - Rename the
src\DancingGoat\AppSettings.config.template
file toAppSettings.config
. - Copy the
CMSConnectionString
connection string from the Kenticoweb.config
file to thesrc\DancingGoat\ConnectionStrings.config
file. - Copy the
CMSHashStringSalt
app setting from the Kenticoweb.config
file to thesrc\DancingGoat\AppSettings.config
file. - Open the
KenticoMvc
solution in Visual Studio and run the src\Dancing Goat web application. - (Optional) Open the Smart search application and rebuild the
Dancing Goat MVC
search index.
Note: The initial build can take a little longer as it needs to restore NuGet packages.
- Install Kentico.
- Create a new site in the Sites application based on the MVC Blank Site web template.
- Enable web farms in automatic mode.
- Rename the
samples\LearningKit\ConnectionStrings.config.template
file toConnectionStrings.config
. - Rename the
samples\LearningKit\AppSettings.config.template
file toAppSettings.config
. - Copy the
CMSConnectionString
connection string from the Kenticoweb.config
file to thesamples\LearningKit\ConnectionStrings.config
file. - Copy the
CMSHashStringSalt
app setting from the Kenticoweb.config
file to thesamples\LearningKit\AppSettings.config
file. - Open the
KenticoMvc
solution in Visual Studio and run the samples\LearningKit web application.