ASP.NET Core: Cloud-ready, Enterprise Web Application Development


Book Description

Create fast, scalable, and high-performance applications with C# and ASP.NET Core About This Book Get first-principle coverage of the latest ASP.NET Core MVC Find out how to bring together the capabilities and features of both Angular 2 and ASP.NET Core Discover common areas you might encounter performance problems with and areas you don't need to worry about Who This Book Is For This book is for developers who want to learn to build web applications using ASP.NET Core, those who want to make a career building web applications using Microsoft technology, and those who are working on other web frameworks and want to learn ASP.NET Core. What You Will Learn Get to know the concepts of ASP.NET MVC Create a Controller with action methods Build a view using several features of the Razor View engine Construct a Model for ASP.NET Core MVC application Find out how the features of ASP.NET Core and Angular 2 perfectly complement each other Handle requests and actions using server-side and client-side Routing Create a Data Model using Entity Framework Core Learn how to use Angular 2 components and master directives Improve performance at the network level and I/O level, and how to optimize the application as a whole Monitor performance as part of Continuous Integration and regression testing In Detail ASP.NET Core is the new, open source, and cross-platform, web-application framework from Microsoft. ASP.NET Core MVC helps you build robust web applications using the Model-View-Controller design. This guide will help you in building applications that can be deployed on non-Windows platforms such as Linux. Starting with an overview of the MVC pattern, you will quickly dive into the aspects that you need to know to get started with ASP.NET. You will learn about the core architecture of model, view, and control. Integrating your application with Bootstrap, validating user input, interacting with databases, and deploying your application are some of the things that you will learn to execute with this fast-paced guide. You will test your knowledge as you build a fully working sample application using the skills you've learned throughout the book. Moving forward, this guide will teach you to combine the impressive capabilities of ASP.NET Core and Angular 2. Not only will you learn how Angular 2 can complement your .NET skills and toolkit, you'll also learn everything you need to build a complete, dynamic single-page application. Find out how to get your data model in place and manage an API, before styling and designing your frontend for an exceptional user experience. You will find out how to optimize your application for SEO, identify and secure vulnerabilities, and how to successfully deploy and maintain your application. From here, you will delve into the latest frameworks and software design patterns to improve your application performance. The course offers premium, highly practical content on the recently released ASP.NET Core, and includes material from the following Packt books: Learning ASP.NET Core MVC Programming, ASP.NET Core and Angular 2, and ASP.NET Core 1.0 High Performance. Style and approach This learning path takes a first-principles approach to help you understand and implement ASP.NET MVC solutions.







Pro ASP.NET Core 3


Book Description

Now in its 8th edition, Pro ASP.NET Core has been thoroughly updated for ASP.NET Core 3 and online for ASP.NET Core 5 and .NET 5.0. This comprehensive, full-color guide is the only book you need to learn ASP.NET Core development. Professional developers get ready to produce leaner applications for the ASP.NET Core platform. This edition puts ASP.NET Core 3 into context, and takes a deep dive into the tools and techniques required to build modern, extensible web applications. New features and capabilities such as MVC 3, Razor Pages, Blazor Server, and Blazor WebAssembly are covered, along with demonstrations of how they can be applied in practice. Following the same popular format and style found in previous editions, author Adam Freeman explains how to get the most out of ASP.NET Core 3. Starting with the nuts-and-bolts topics, he teaches readers about middleware components, built-in services, request model binding, and more. Moving along, he introduces increasingly more complex topics and advanced features, including endpoint routing and dependency injection. Written for professionals wanting to incorporate the latest functionality of ASP.NET Core 3 into their projects, this book also serves as a complete reference on ASP.NET Core. Beginners with some background in Microsoft web development will also greatly benefit from the in-depth coverage provided throughout. What You Will Learn: Build a solid foundation and skill set for working with the entire ASP.NET Core platformApply ASP.NET Core 3 and ASP.NET Core 5 features in your developer environment; plentiful reusable templatesSee how to create RESTful web services, web applications, and client-side applicationsLeverage existing knowledge to efficiently get up and running with new programming models Adam Freeman is an experienced IT professional who has held senior positions in a range of companies, most recently serving as chief technology officer and chief operating officer of a global bank. Now retired, he spends his time writing and long-distance running. “The Rolls-Royce of ASP.NET books, (or if you’re American, the Cadillac). Very thorough!” Les Jackson, MCSD, DotNet Playbook “The author’s instruction is direct, easy to understand and supplemented with clear code examples... Whether you are a beginner learning ASP.NET Core 3.1 app development, or an experienced professional ready to master advanced concepts, I consider this book a 'must have' for you!" Jeremy Likness, Senior Program Manager, Microsoft “...the best single resource for teaching MVC web apps using ASP.NET. “ Charles Carter, MSCS, MSwE, JD, Cloud Application Development Instructor, Microsoft Software and Systems Academy




Pro ASP.NET Core 6


Book Description

Professional developers will produce leaner applications for the ASP.NET Core platform using the guidance in this best-selling book, now in its 9th edition and updated for ASP.NET Core for .NET 6. It contains detailed explanations of the ASP.NET Core platform and the application frameworks it supports. This cornerstone guide puts ASP.NET Core for .NET 6 into context and dives deep into the tools and techniques required to build modern, extensible web applications. New features and capabilities such as MVC, Razor Pages, Blazor Server, and Blazor WebAssembly are covered, along with demonstrations of how they are applied. ASP.NET Core for .NET 6 is the latest evolution of Microsoft's ASP.NET web platform and provides a "host-agnostic" framework and a high-productivity programming model that promotes cleaner code architecture, test-driven development, and powerful extensibility. Author Adam Freeman has thoroughly revised this market-leading book and explains how to get the most from ASP.NET Core for .NET 6. He starts with the nuts-and-bolts topics, teaching you about middleware components, built-in services, request model binding, and more. As you gain knowledge and confidence, he introduces increasingly more complex topics and advanced features, including endpoint routing and dependency injection. He goes in depth to give you the knowledge you need. This book follows the same format and style as the popular previous editions but brings everything up to date for the new ASP.NET Core for .NET 6 release and broadens the focus to include all of the ASP.NET Core platform. You will appreciate the fully worked case study of a functioning ASP.NET Core application that you can use as a template for your own projects. What You Will Learn Explore the entire ASP.NET Core platform Apply the new ASP.NET Core for .NET 6 features in your developer environment See how to create RESTful web services, web applications, and client-side applications Build on your existing knowledge to get up and running with new programming models quickly and effectively This book is for web developers with a basic knowledge of web development and C# who want to incorporate the latest improvements and functionality in ASP.NET Core for .NET 6 into their own projects. Adam Freeman is an experienced IT professional who has held senior positions in a range of companies, most recently serving as chief technology officer and chief operating officer of a global bank. Now retired, he spends his time writing and long-distance running.




Hands-On RESTful Web Services with ASP.NET Core 3


Book Description

Get up to speed with the latest features of C# 8, ASP.NET Core 3 and .NET Core 3.1 LTS to create robust and maintainable web services Key FeaturesApply design patterns and techniques to achieve a reactive, scalable web serviceDocument your web services using the OpenAPI standard and test them using PostmanExplore mechanisms to implement a secure web service using client-side SSL and token authenticationBook Description In recent times, web services have evolved to play a prominent role in web development. Applications are now designed to be compatible with any device and platform, and web services help us keep their logic and UI separate. Given its simplicity and effectiveness in creating web services, the RESTful approach has gained popularity, and this book will help you build RESTful web services using ASP.NET Core. This REST book begins by introducing you to the basics of the REST philosophy, where you'll study the different stages of designing and implementing enterprise-grade RESTful web services. You'll also gain a thorough understanding of ASP.NET Core's middleware approach and learn how to customize it. The book will later guide you through improving API resilience, securing your service, and applying different design patterns and techniques to achieve a scalable web service. In addition to this, you'll learn advanced techniques for caching, monitoring, and logging, along with implementing unit and integration testing strategies. In later chapters, you will deploy your REST web services on Azure and document APIs using Swagger and external tools such as Postman. By the end of this book, you will have learned how to design RESTful web services confidently using ASP.NET Core with a focus on code testability and maintainability. What you will learnGain a comprehensive working knowledge of ASP.NET CoreIntegrate third-party tools and frameworks to build maintainable and efficient servicesImplement patterns using dependency injection to reduce boilerplate code and improve flexibilityUse ASP.NET Core's out-of-the-box tools to test your applicationsUse Docker to run your ASP.NET Core web service in an isolated and self-contained environmentSecure your information using HTTPS and token-based authenticationIntegrate multiple web services using resiliency patterns and messaging techniquesWho this book is for This book is for anyone who wants to learn how to build RESTful web services with the ASP.NET Core framework to improve the scalability and performance of their applications. Basic knowledge of C# and .NET Core will help you make the best use of the code samples included in the book.




Enterprise Application Development with C# 10 and .NET 6


Book Description

A comprehensive guide to every important component of C# and .NET 6 required to build robust enterprise web applications Key Features • Explore the advanced features of C# and .NET 6 to enhance your code and productivity • Follow clear and easy instructions for building an end-to-end enterprise application • Learn how to build scalable web applications and host them on the cloud Book Description Building production-ready enterprise applications can be a challenging task due to the overabundance of tools and their different versions that make app development complex. This book simplifies the process with an end-to-end road map for building enterprise applications from scratch using the latest features of .NET Core 6 and C# 10. Throughout the book, you'll work on creating an enterprise app, adding a key component to the app with each chapter, before finally getting it ready for testing and deployment. You'll learn concepts relating to advanced data structures, the Entity Framework Core, parallel programming, and dependency injection. As you progress, you'll cover various authentication and authorization schemes provided by .NET Core to make your apps and APIs secure. The book then shows you how the latest Microsoft Visual Studio and C# 10 help you simplify developer tasks and shares tips and tricks in Visual Studio to improve your productivity. You'll discover various testing techniques, such as unit testing and performance testing, as well as different methods to deploy enterprise apps. By the end of this book, you'll be able to create enterprise apps using the powerful features of .NET 6 and deploy them to the cloud while working with various cloud components using Azure. What you will learn • Design enterprise apps by making the most of the latest features of .NET 6 • Discover different layers of an app, such as the data layer, API layer, and web layer • Explore end-to-end architecture by implementing an enterprise web app using .NET and C# 10 and deploying it on Azure • Focus on the core concepts of web application development and implement them in .NET 6 • Integrate the new .NET 6 health and performance check APIs into your app • Explore MAUI and build an application targeting multiple platforms - Android, iOS, and Windows Who this book is for If you are a developer, architect, or senior programmer, this book will show you how to leverage the features of .NET 6 and the C# language, as well as help you grasp essential techniques to build your skills.




Enterprise Application Development with C# 9 and .NET 5


Book Description

Become a professional .NET developer by learning expert techniques for building enterprise-grade applications Key FeaturesExplore the advanced features of C# and .NET 5 to enhance your code and productivityFollow clear and easy instructions for building an end-to-end enterprise applicationLearn how to build scalable web applications and host them on the cloudBook Description .NET Core is one of the most popular programming platforms in the world for an increasingly large community of developers thanks to its excellent cross-platform support. This book will show you how to confidently use the features of .NET 5 with C# 9 to build robust enterprise applications. Throughout the book, you'll work on creating an enterprise app and adding a key component to the app with each chapter, before ?nally getting it ready for testing and deployment. You'll learn concepts relating to advanced data structures, the Entity Framework Core, parallel programming, and dependency injection. As you progress, you'll cover various authentication and authorization schemes provided by .NET Core to make your apps and APIs secure. Next, you'll build web apps using ASP.NET Core 5 and deploy them on the cloud while working with various cloud components using Azure. The book then shows you how to use the latest Microsoft Visual Studio 2019 and C# 9 to simplify developer tasks, and also explores tips and tricks in Visual Studio 2019 to improve your productivity. Later, you'll discover various testing techniques such as unit testing and performance testing as well as di?erent methods to deploy enterprise apps. By the end of this book, you'll be able to create enterprise apps using the powerful features of .NET 5 and deploy them on the cloud. What you will learnDesign enterprise apps by making the most of the latest features of .NET 5Discover di?erent layers of an app, such as the data layer, API layer, and web layerExplore end-to-end architecture, implement an enterprise web app using .NET and C# 9, and deploy the app on AzureFocus on the core concepts of web application development such as dependency injection, caching, logging, con?guration, and authentication, and implement them in .NET 5Integrate the new .NET 5 health and performance check APIs with your appUnderstand how .NET 5 works and contribute to the .NET 5 platformWho this book is for If you are a developer, architect, or senior programmer who wants to leverage the features of .NET 5 and the C# language, as well as grasp essential techniques to build your skills, then this C# .NET 5 book is for you. Beginner to intermediate-level knowledge of the .NET framework and C# programming is required to understand the concepts covered in this book more effectively.




ASP.NET Core and Vue.js


Book Description

A busy .NET developer's step-by-step guide to building fully functional, cloud-ready, and professional web apps without diving into the theory of frameworks and libraries Key FeaturesDiscover tenants of clean architecture in the latest ASP.NET Core 5 Web APIDevelop Vue.js 3 single-page applications (SPAs) using TypeScript and VuexLearn techniques to secure, test, and deploy your full-stack web apps on AzureBook Description Vue.js 3 is faster and smaller than the previous version, and TypeScript’s full support out of the box makes it a more maintainable and easier-to-use version of Vue.js. Then, there's ASP.NET Core 5, which is the fastest .NET web framework today. Together, Vue.js for the frontend and ASP.NET Core 5 for the backend make a powerful combination. This book follows a hands-on approach to implementing practical methodologies for building robust applications using ASP.NET Core 5 and Vue.js 3. The topics here are not deep dive and the book is intended for busy .NET developers who have limited time and want a quick implementation of a clean architecture with popular libraries. You’ll start by setting up your web app’s backend, guided by clean architecture, command query responsibility segregation (CQRS), mediator pattern, and Entity Framework Core 5. The book then shows you how to build the frontend application using best practices, state management with Vuex, Vuetify UI component libraries, Vuelidate for input validations, lazy loading with Vue Router, and JWT authentication. Later, you’ll focus on testing and deployment. All the tutorials in this book support Windows 10, macOS, and Linux users. By the end of this book, you’ll be able to build an enterprise full-stack web app, use the most common npm packages for Vue.js and NuGet packages for ASP.NET Core, and deploy Vue.js and ASP.NET Core to Azure App Service using GitHub Actions. What you will learnDiscover CQRS and mediator pattern in the ASP.NET Core 5 Web APIUse Serilog, MediatR, FluentValidation, and Redis in ASP.NETExplore common Vue.js packages such as Vuelidate, Vuetify, and VuexManage complex app states using the Vuex state management libraryWrite integration tests in ASP.NET Core using xUnit and FluentAssertionsDeploy your app to Microsoft Azure using the new GitHub Actions for continuous integration and continuous deployment (CI/CD)Who this book is for This app development book is for .NET developers who want to get started with Vue.js and build full-stack enterprise web applications. Web developers looking to build a proof-of-concept application quickly and pragmatically using their existing knowledge of ASP.NET Core as well as developers who want to write readable and maintainable code using TypeScript and the C# programming language will also find this book useful. The book assumes intermediate-level .NET knowledge along with an understanding of C# programming, JavaScript, and ECMAScript.




Learning ASP.NET Core 2.0


Book Description

Learn how web applications can be built efficiently using ASP.NET Core 2.0 and related frameworks About This Book Get to grips with the new features and APIs introduced in ASP.NET Core 2.0 Leverage the MVC framework and Entity Framework Core 2 to build efficient applications Learn to deploy your web applications in new environments such as the cloud and Docker Who This Book Is For This book is for developers who would like to build modern web applications with ASP.NET Core 2.0. No prior knowledge of ASP.NET or .NET Core is required. However, basic programming knowledge is assumed. Additionally, previous Visual Studio experience will be helpful but is not required, since detailed instructions will guide through the samples of the book.This book can also help people, who work in infrastructure engineering and operations, to monitor and diagnose problems during the runtime of ASP.NET Core 2.0 web applications. What You Will Learn Set up your development environment using Visual Studio 2017 and Visual Studio Code Create a fully automated continuous delivery pipeline using Visual Studio Team Services Get to know the basic and advanced concepts of ASP.NET Core 2.0 with detailed examples Build an MVC web application and use Entity Framework Core 2 to access data Add Web APIs to your web applications using RPC, REST, and HATEOAS Authenticate and authorize users with built-in ASP.NET Core 2.0 features Use Azure, Amazon Web Services, and Docker to deploy and monitor your applications In Detail The ability to develop web applications that are highly efficient but also easy to maintain has become imperative to many businesses. ASP.NET Core 2.0 is an open source framework from Microsoft, which makes it easy to build cross-platform web applications that are modern and dynamic. This book will take you through all of the essential concepts in ASP.NET Core 2.0, so you can learn how to build powerful web applications. The book starts with a brief introduction to the ASP.NET Core framework and the improvements made in the latest release, ASP.NET Core 2.0. You will then build, test, and debug your first web application very quickly. Once you understand the basic structure of ASP.NET Core 2.0 web applications, you'll dive deeper into more complex concepts and scenarios. Moving on, we'll explain how to take advantage of widely used frameworks such as Model View Controller and Entity Framework Core 2 and you'll learn how to secure your applications. Finally, we'll show you how to deploy and monitor your applications using Azure, AWS, and Docker. After reading the book, you'll be able to develop efficient and robust web applications in ASP.NET Core 2.0 that have high levels of customer satisfaction and adoption. Style and approach Start an exciting journey to building high performance web applications using ASP.NET Core 2.0 and MVC




ASP.NET Core MVC 2.0 Cookbook


Book Description

Learn to implement ASP.NET Core features to build effective software that can be scaled and maintained easily Key Features Practical solutions to recurring issues in the web development world Recipes on the latest features of ASP.Net Core 2.0 Coverage of Bootstrap, Angular, and JavaScript lets you supercharge your frontend Book Description The ASP.NET Core 2.0 Framework has been designed to meet all the needs of today’s web developers. It provides better control, support for test-driven development, and cleaner code. Moreover, it’s lightweight and allows you to run apps on Windows, OSX and Linux, making it the most popular web framework with modern day developers. This book takes a unique approach to web development, using real-world examples to guide you through problems with ASP.NET Core 2.0 web applications. It covers Visual Studio 2017- and ASP.NET Core 2.0-specifc changes and provides general MVC development recipes. It explores setting up .NET Core, Visual Studio 2017, Node.js modules, and NuGet. Next, it shows you how to work with Inversion of Control data pattern and caching. We explore everyday ASP.NET Core MVC 2.0 patterns and go beyond it into troubleshooting. Finally, we lead you through migrating, hosting, and deploying your code. By the end of the book, you’ll not only have explored every aspect of ASP.NET Core MVC 2.0, you’ll also have a reference you can keep coming back to whenever you need to get the job done. What you will learn Build ASP.Net Core 2.0 applications using HTTP services with WebApi Learn to unit-test, load test, and perform test applications using client-side and server-side frameworks Debug, monitor and troubleshoot ASP.Net Core 2.0 applications using popular tools Reuse components with NuGet and create modular components with middleware Create applications using client-side technologies such as HTML5, JavaScript, jQuery, and Angular Build responsive and dynamic UIs for your MVC apps using Bootstrap Leverage tools like Karma, Jasmine, QUnit, xUnit, Selenium, Microsoft Fakes, and Visual Studio 2017 Enterprise Who this book is for This book is written for the ASP.NET developer who wants to deliver professional-standard software, quickly and efficiently. It's filled with hands-on recipes, practical advice, and guidance to help developers with every aspect of the ASP.NET development cycle. Whether you've just started out or are a seasoned pro, the Asp.Net Core 2.0 Cookbook is written for you.