Do you want to debug Turnkey or add code and pages to your app?
This article helps you set up the environment for local development and debugging of Driven Turnkey application in Visual Studio.
Note! This is for running the Turnkey server locally, not just moving your model from the Designer to Visual Studio and using code. If you want an more light weight way of adding C# code and cshtml pages to your Turnkey application, look first at CodeDress.
Download MDriven Turnkey
To start developing your Turnkey Application locally in Visual Studio you need to download the latest version of MDriven Turnkey from MDrivens site. Download link. Then unzip downloaded archive.
Setting Up Visual Studio
Open downloaded MDriven Turnkey in Visual Studio. You need to choose option "Open -> Web Site" and choose "Application" folder which was extracted from the downloaded archive. Then you need to enable SSL in your project. Choose your Application in the Solution Explorer and enable SSL in the "Properties" window below.
When SSL is enabled, copy SSL Url and paste it to "Start options" in "Start Url" field (Right-click on Application in Solution Explorer).
Also, you need to check that you will build the application with a correct version of .NET Framework.
Connect with the data and model in the cloud
To connect your local MDriven Turnkey copy with data and model in the cloud open MDrivenServerOverride - NotInEffect.xml
When it's done rename MDrivenServerOverride - NotInEffect.xml to -> MDrivenServerOverride.xml and TurnkeySettings - NotInEffect.xml to -> TurnkeySettings.xml , then you can build your application and start debug.
Now, you can change the regular view of page. You just need to find name of ViewModel which you want to override, then create a new file with .cshtml extension in Views -> EXT_OverridePages. Notice! You must name the new file exactly like a name of existing ViewModel which you want to override. (For example, if you have a ViewModel called "TimeManage", your file for overriding this page must be called TimeManage.cshtml). For start you can use a default template of page from AngularPageDynamicTemplate.cshtml (Views -> Turnkey) and copy it in your new page override file. See more about View override.
To make your experience more comfortable, we set the main tags mentioned in the video to the right bar menu of this mini player. Choose the interesting subtitle on the list and immediately get to the exact theme timeplace in the video. Now you can pick any topic to be instructed without watching the whole video.
In this session we set up the environment for local development and debugging in visual studio - still using the data and model in the cloud. We also replace one of the standard views from inside VS.
In this session we show how you bind to things in your view models with angular to completely take control of all rendering with html5. Continue where we left off having MDriven turnkey in Visual Studio for local development.