Book Image

DevOps with Windows Server 2016

Book Image

DevOps with Windows Server 2016

Overview of this book

Delivering applications swiftly is one of the major challenges faced in fast-paced business environments. Windows Server 2016 DevOps is the solution to these challenges as it helps organizations to respond faster in order to handle the competitive pressures by replacing error-prone manual tasks using automation. This book is a practical description and implementation of DevOps principles and practices using the features provided by Windows Server 2016 and VSTS vNext. It jumps straight into explaining the relevant tools and technologies needed to implement DevOps principles and practices. It implements all major DevOps practices and principles and takes readers through it from envisioning a project up to operations and further. It uses the latest and upcoming concepts and technologies from Microsoft and open source such as Docker, Windows Container, Nano Server, DSC, Pester, and VSTS vNext. By the end of this book, you will be well aware of the DevOps principles and practices and will have implemented all these principles practically for a sample application using the latest technologies on the Microsoft platform. You will be ready to start implementing DevOps within your project/engagement.
Table of Contents (20 chapters)
DevOps with Windows Server 2016
Credits
About the Author
Acknowledgments
About the Reviewer
Acknowledgments
www.PacktPub.com
Customer Feedback
Preface

Controllers and Views


Now that database, model, and data connection has been set up, it's time to look into controllers and views. The web application uses the ASP.NET Web Application template from Web section as shown in Figure 23.

Figure 23: Selecting ASP.NET Web Application project template

.NET framework 4.5.2 is selected as framework selection. Application Insights checkbox is checked. The project name is OnlinePharmacy. The type of project as shown in Figure 24 selected is MVC from ASP.NET 4.5.2 Templates with Add unit tests project added. By default, the name of the project would be the name of ASP.NET MVC project with tests appended as suffix and the default name is used for unit test project.

Figure 24: Selecting MVC as project template and adding unit tests project

Alternatively, these two projects could be created after starting from a blank template and adding new projects to it.

Controllers

Both the controllers sand views are generated using the scaffolding feature provided by...