Skip to content

X-lem/training-kentico-k12

 
 

Repository files navigation

Kentico CMS/EMS MVC training website

This is an ASP.NET MVC 5 sample project built for the purpose of our Kentico MVC for Developers training.

It is a website of a fictional medical institution named Medio Clinic.

How to run the project

To make the project work, follow these steps:

  1. Make sure your computer meets the system requirements outlined in the documentation.
  2. Clone the repo (git clone https://github.com/Kentico/training-kentico-k12).
  3. Extract a database backup file out of /Db/MedioClinic.zip.
  4. Start your SQL Server management studio and restore the extracted MedioClinic.bak file.
  5. Register both the administration interface and the Medio Clinic website in IIS.
    • If you register the administration interface as an application that sits under Default Web Site and has a Kentico12_Admin alias, then you won't have to do any adjustments in Visual Studio.
    • The same applies to the Medio Clinic project: If you register it under Default Web Site as Kentico12_MedioClinic, then you should be ready to compile and run.
  6. Open Visual Studio with elevated credentials, open the WebApp.sln solution and build it (Ctrl+Shift+B).
  7. Open the web.config file and adjust the connection string to your SQL Server instance (if your database instance runs on a different machine).
  8. Close the solution.
  9. Open the MedioClinic.sln solution.
    • If you haven't opened Visual Studio with elevated credentials, then you may encounter an error message saying Visual Studio doesn't have access to your local IIS.
    • If you haven't registed the project under Default Web Site as Kentico12_Admin, then you might want to adjust debugging settings through the following steps:
      • Go to the solution explorer
      • Right-click the MedioClinic project
      • Go to the Web tab
      • Under the Servers section > Project Url, set the correct URL according to your IIS configuration.
  10. Build the solution.
  11. Open the /Config/ConnectionStrings.config file to eventually adjust the connection string (in the same way as you did with the administration interface project).

Troubleshooting

If you encounter a problem while going through the course, please let us know either through the course survey or by filing an issue here in GitHub.

Releases

No releases published

Packages

No packages published

Languages

  • C# 60.2%
  • JavaScript 22.2%
  • Classic ASP 12.7%
  • CSS 4.2%
  • Other 0.7%