|
| 1 | +--- |
| 2 | +title: Build the Team Efficiency Dashboard Project - Step 1: Getting Up and Running |
| 3 | +page_title: Build the Team Efficiency Dashboard Project - Getting Up and Running |
| 4 | +description: "Build the Team Efficiency Dashboard Project - Step 1: Getting Up and Running." |
| 5 | +previous_url: /tutorials/quickstart/team-efficiency, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter1, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter2, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter3, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter4, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter5, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter6, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter7, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter8, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter9, /tutorials/tutorial-aspnetmvc-quick-start/build-team-efficiency-app/chapter10 |
| 6 | +slug: gettingupandrunning_timeefficiencyapp_aspnetmvc6 |
| 7 | +position: 1 |
| 8 | +--- |
| 9 | + |
| 10 | +# Build the Team Efficiency Dashboard Project |
| 11 | + |
| 12 | +## Step 1: Getting Up and Running |
| 13 | + |
| 14 | +In this chapter you are going to start with the basics, including starting a new project, adding Telerik UI for MVC to your project, and installing the quick start boilerplate. |
| 15 | + |
| 16 | +### Create a New MVC Project |
| 17 | + |
| 18 | +#### Overview |
| 19 | + |
| 20 | +Telerik UI for ASP.NET MVC can easily be added to an existing ASP.NET MVC project using VisualStudio in just a few clicks. Start by creating a new ASP.NET MVC project. You will use this project throughout the rest of this tutorial to build your application. |
| 21 | + |
| 22 | +#### Exercise: Create a New MVC Project |
| 23 | + |
| 24 | +1. Click **File** > **New Project**. |
| 25 | + |
| 26 | +1. In the **New Project** dialog, choose the **ASP.NET Web Application** template by expanding the **Templates** tree to **Templates** > **Visual C#** > **Web**. |
| 27 | + |
| 28 | +  |
| 29 | + |
| 30 | +1. Give the application a name, for example, **MyQuickStartApp**. Click **OK** to continue. |
| 31 | + |
| 32 | +1. In the **New ASP.NET Project** dialog, choose **MVC** from the template selection. |
| 33 | + |
| 34 | +  |
| 35 | + |
| 36 | +1. Click **OK** to finish. |
| 37 | + |
| 38 | +### Install the Quick Start Boilerplate |
| 39 | + |
| 40 | +#### Overview |
| 41 | + |
| 42 | +With the new project created, it is time to start building your app. For this guide, we have scaffolded out a boilerplate project to act as a starting point for the Team Efficiency Dashboard application. |
| 43 | + |
| 44 | +The boilerplate has an HTML page, a layout, the Northwind database, and some server-side code you may find in a typical MVC project. |
| 45 | + |
| 46 | +#### Exercise: Install the Quick Start Boilerplate |
| 47 | + |
| 48 | +1. Using the package manager console, run the command below. |
| 49 | + |
| 50 | + PM> Install-Package KendoQsBoilerplate |
| 51 | + |
| 52 | + Alternatively, you can use the GUI package manager. |
| 53 | + |
| 54 | +1. From the Solution Explorer, right-click **References**, then choose **Manage NuGet Packages**. |
| 55 | + |
| 56 | +  |
| 57 | + |
| 58 | +1. Search for **KendoQsBoilerplate**. |
| 59 | + |
| 60 | +  |
| 61 | + |
| 62 | +1. Click **Install** to continue. |
| 63 | +1. When the package installs, you may be prompted to accept a license agreement for the NorthwindDB. Click **I Accept** to continue. |
| 64 | +1. It is normal for the quick start boilerplate to overwrite existing files. When prompted with a file conflict, choose **Yes to All**. |
| 65 | + |
| 66 | +  |
| 67 | + |
| 68 | +1. With the boilerplate installed, take a moment to run the application. If all went well, you should see something similar to what is shown below. |
| 69 | + |
| 70 | +  |
| 71 | + |
| 72 | +### Convert to Telerik Applications |
| 73 | + |
| 74 | +#### Overview |
| 75 | + |
| 76 | +At this point, you have the wire frame for a basic MVC application. Next, you will be adding the UI for ASP.NET MVC to the application by using the **Convert to Telerik Application** tooling. When an application is converted to a Telerik application, all required HTML, CSS, JavaScript and `.DLL` libraries are added. This is the first step you would take to upgrade a new or existing MVC project to use Telerik UI for ASP.NET MVC. |
| 77 | + |
| 78 | +#### Exercise: Convert to a Telerik Application |
| 79 | + |
| 80 | +1. Stop the application if it is already running. |
| 81 | +1. In the Solution Explorer, right-click the project name and select **Telerik UI for ASP.NET MVC** > **Convert to Telerik Application**. This will launch the **Project Configuration** wizard. From here you can choose settings for your Telerik project. |
| 82 | + |
| 83 | +  |
| 84 | + |
| 85 | +1. For this tutorial your project will use CDN support. This means that all Kendo UI resources are served from Telerik content delivery network (CDN) versus relying on your server for the assets. Verify that the box **Use CDN support** is checked and click **Finish** to continue. |
| 86 | + |
| 87 | +  |
| 88 | + |
| 89 | +1. Since the boilerplate is designed with [Bootstrap](https://getbootstrap.com), choose **Bootstrap** from themes select box so the theme matches the current look of the boilerplate. You'll change the theme later when you're ready to customize the look of the application. |
| 90 | + |
| 91 | +  |
| 92 | + |
| 93 | +1. Open `\Views\Shared\_Layout.cshtml`. Find and remove the `@Scripts.Render("~/bundles/modernizr")` script bundle. This script is included with the Kendo UI assets. |
| 94 | +1. Next, find the CSS `@Styles.Render("~/Content/css")` bundle and move it just above the closing head tag `</head>`. This will ensure that the custom styles are applied when you customize the application. |
| 95 | +1. The final code of the head section should look like the one shown in the example below. |
| 96 | + |
| 97 | + <meta charset="utf-8" /> |
| 98 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 99 | + <title>@ViewBag.Title - UI for MVC / Kendo Quick Start Guide</title> |
| 100 | + <link href="https://kendo.cdn.telerik.com/themes/{{ site.themesCdnVersion }}/default/default-ocean-blue.css" rel="stylesheet" type="text/css" /> |
| 101 | + <link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" type="text/css" /> |
| 102 | + <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" /> |
| 103 | + <script src="https://code.jquery.com/jquery-3.6.1.min.js"></script> |
| 104 | + <script src="https://unpkg.com/jszip/dist/jszip.min.js"></script> |
| 105 | + <script src="https://kendo.cdn.telerik.com/{{ site.cdnVersion }}/js/kendo.all.min.js"></script> |
| 106 | + <script src="https://kendo.cdn.telerik.com/{{ site.cdnVersion }}/js/kendo.aspnetmvc.min.js"></script> |
| 107 | + <script src="@Url.Content("~/Scripts/bootstrap.min.js")"></script> |
| 108 | + <script src="@Url.Content("~/Scripts/kendo.modernizr.custom.js")"></script> |
| 109 | + @Styles.Render("~/Content/css") |
| 110 | + |
| 111 | +> Because the **Convert to Telerik application**, **Upgrade Project**, or **Configure Project** wizards modify the `_Layout.cshtml` file, make sure you check the position of the custom CSS declarations afterwards. |
| 112 | +
|
| 113 | +Now that your app is ready for development. Let's add some simple input components to create a nice user experience. |
0 commit comments