Building Web Applications with .NET Core 2.1 and JavaScript


Book Description

Roll up your sleeves and jump into building web applications using .NET Core 2.1 and the most popular JavaScript frameworks. You will start by building a data access layer using Entity Framework Core, a RESTful service using ASP.NET Core, and then you will build a web application following the MVC pattern, also using ASP.NET Core. The resulting application is an example e-commerce site using the most appropriate capabilities in .NET Core for building a line of business applications. The second half of Building Web Applications with .NET Core 2.1 and JavaScript is dedicated to teaching you how to develop applications on the client with JavaScript, BootStrap, and related tooling such as TypeScript, WebPack, NPM, and more. Each JavaScript framework will build the same UI as the ASP.NET Core web application from the first half of the book, leveraging the same ASP.NET Core RESTful service and Entity Framework Core data access layer. Building the same UI in the different JavaScript frameworks provides the context and knowledge to reasonably compare and contrast the tools. What You Will Learn Ramp up quickly on Entity Framework Core and ASP.NET Core Use TypeScript to deliver better JavaScript Manage your JavaScript build process Know how to build UIs with ASP.NET Core MVC, Angular, and React to make better decisions on which technologies to adopt in your projectsConduct an apples-to-apples comparison of ASP.NET Core, Angular, and React Who This Book Is For .NET architects, consultants, and developers who want to modernize their skill set. Some understanding of JavaScript and the Web is useful.




Building Web Applications with Visual Studio 2017


Book Description

Learn how to build web applications from three Microsoft MVPs. After building the data application layer using Entity Framework Core and a RESTful service using ASP.NET Core, you will then build the client side web application three ways: first, using ASP.NET Core, then using Angular 2, and, finally, using React. You will be able to compare and contrast these UI frameworks and select the best one for your needs. .NET Core is a complete rewrite of the popular .NET and its related frameworks. While many concepts are similar between .NET Core and the .NET 4.6 framework, there are revolutionary changes as well, including updates to Entity Framework Core and ASP.NET Core. The first section of this book covers the three main parts of building applications with C#: Entity Framework, ASP.NET Core Services, and ASP.NET Core Web Applications. There is also an explosion in popularity of JavaScript frameworks for client side development, and the authors cover two of the most popular UI frameworks. Start with TypeScript for developing clean JavaScript, along with a client side build tool such as Gulp, Grunt, and WebPack. Using the same data access layer and RESTful service from the .NET Core application, you can rebuild the UI using Angular 2. Then, repeat the process using React, for a true comparison of building client side applications using ASP.NET Core, Angular 2, and React. What You'll Learn Understand the fundamentals of .NET Core and what that means to the traditional .NET developer Build a data access layer with Entity Framework Core, a RESTful service with ASP.NET Core MVC, and a website with ASP.NET Core MVC and Bootstrap Automate many build tasks with client side build utilities Who This Book Is For Intermediate to advanced .NET developers




ASP.NET Core Application Development


Book Description

This is the eBook of the printed book and may not include any media, website access codes, or print supplements that may come packaged with the bound book. Through four complete sprints, this book takes you through every step needed to build brand new cross-platform web apps with ASP.NET Core, and make them available on the Internet. You won't just master Microsoft's revolutionary open source ASP.NET Core technology: you'll learn how to integrate the immense power of MVC, Docker, Azure Web Apps, Visual Studio and Visual Studio Code, C#, JavaScript, TypeScript, and Entity Framework. Working through the authors' carefully designed sprints, you'll start with a blank canvas, move through software architecture and design, adjusting to user feedback, recovering from mistakes, builds, testing, deployment, maintenance, refactoring, and more. Along the way, you'll learn techniques for delivering state-of-the-art software to users more rapidly and repeatably than ever before.




ASP.NET Core 2 and Vue.js


Book Description

Leverage ASP.NET core 2.0 web API and the power of Vue.js at the client side to create modern applications from scratch Key Features Create fast, rich and reactive client side applications with Vue.js and ASP.NET Core. Leverage Vue components efficiently to build state of the art user interfaces. Work with Vuex and Nuxt.js to build ASP.NET Core based applications that are powerful, consistent, and maintainable Book Description This book will walk you through the process of developing an e-commerce application from start to finish, utilizing an ASP.NET Core web API and Vue.js Single-Page Application (SPA) frontend. We will build the application using a featureslice approach, whereby in each chapter we will add the required frontend and backend changes to complete an entire feature. In the early chapters, we’ll keep things fairly simple to get you started, but by the end of the book, you’ll be utilizing some advanced concepts, such as server-side rendering and continuous integration and deployment. You will learn how to set up and configure a modern development environment for building ASP.NET Core web APIs and Vue.js SPA frontends.You will also learn about how ASP.NET Core differs from its predecessors, and how we can utilize those changes to our benefit. Finally, you will learn the fundamentals of building modern frontend applications using Vue.js, as well as some of the more advanced concepts, which can help make you more productive in your own applications in the future. What you will learn Setup a modern development environment for building both client-side and server-side code Use Vue CLI to scaffold front-end applications Build and compose a set of Vue.js components Setup and configure client-side routing to introduce multiple pages into a SPA Integrate popular CSS frameworks with Vue.js to build a product catalogue Build a functioning shopping cart that persists its contents across browser sessions Build client-side forms with immediate validation feedback using an open-source library dedicated to Vue.js form validation Refactor backend application to use the OpenIddict library Who this book is for This book is aimed at ASP.NET developers who are looking for an entry point in learning how to build a modern client-side SPA with Vue.js, or those with a basic understanding of Vue.js who are looking to build on their knowledge and apply it to a real-world application. Knowledge of JavaScript is not necessary, but would be an advantage.




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




Pro ASP.NET Core MVC 2


Book Description

Now in its 7th edition, the best selling book on MVC is updated for ASP.NET Core MVC 2. It contains detailed explanations of the Core MVC functionality which enables developers to produce leaner, cloud optimized and mobile-ready applications for the .NET platform. This book puts ASP.NET Core MVC into context and dives deep into the tools and techniques required to build modern, cloud optimized extensible web applications. All the new MVC features are described in detail and the author explains how best to apply them to both new and existing projects. The ASP.NET Core MVC Framework is the latest evolution of Microsoft’s ASP.NET web platform, built on a completely new foundation. It represents a fundamental change to how Microsoft constructs and deploys web frameworks and is free of the legacy of earlier technologies such as Web Forms. ASP.NET Core MVC provides a "host agnostic" framework and a high-productivity programming model that promotes cleaner code architecture, test-driven development, and powerful extensibility. Best-selling author Adam Freeman has thoroughly revised this market-leading book and explains how to get the most from ASP.NET Core MVC. He starts with the nuts-and-bolts and shows you everything through to advanced features, going in-depth to give you the knowledge you need. The book includes a fully worked case study of a functioning web application that readers can use as a template for their own projects. What's New in This Edition Fully updated for Visual Studio 2017, C# 7 and .NET Core 2 Coverage of new features such as view filters Wider platform and tooling coverage than ever before, with more on Visual Studio Code and working with .NET Core on non-Windows platforms Docker-based application deployment What You Will Learn Gain a solid architectural understanding of ASP.NET Core MVC Explore the entire ASP.NET MVC Framework as a cohesive whole See how MVC and test-driven development work in action Learn what's new in ASP.NET Core MVC 2 and how best to apply these new features to your own work See how to create RESTful web services and Single Page Applications Build on your existing knowledge of previous MVC releases to get up and running with the new programming model quickly and effectively Who This Book Is For This book is for web developers with a basic knowledge of ASP.NET and C# who want to incorporate the latest improvements and functionality in the ASP.NET Core MVC 2 Framework.




Building Single Page App Using ASP.NET Core and Angular


Book Description

Building Single Page App using ASP.NET Core and Angular is not at all meant for freshers or for those who just started programming. This Book covers tons of client-server side technologies. For exampleitusesASP.NETCore, Entity FrameworkCore, WebAPI, Repository Pattern, UnitofWork Pattern, Angular, Responsive design principles, HTML 5, Solid Principles, Design Patterns, etc. to name a few. Now to illustrate each and every concept right from the scratch is fairly impossible as it kills the purpose of writing this book. This book is for my readers who regularly ask me to write something combining all these principles. There are tons of developers and professionals around the world who know these concepts in bits and pieces but don't know how to connect the dots to build as an application. This book is entirely written around industry & coding standard, design principles. Hence, if you are fresher or just started your job, I would recommend to understand basics first and then refer this book. Otherwise, this will appear overwhelming at the beginning. From the second chapter, you will find questions section at the end of every chapter. If you are following this book precisely, you should be able to answer these questions on your own. These are project specific questions which are generally asked in any technical interviews. CONTENTS Chapter 1: Getting Started Chapter 2: Creating Solution From The Blank Slate Chapter 3: Creating Data Context Chapter 4: Implementing Web API Chapter 5: Getting Started with Angular Chapter 6: Deeper into Angular Chapter 7: Adding More Features Using Angular Chapter 8: Adding More Features to the App Chapter 9: Authentication & Authorisation Chapter 10: Introduction to Azure and CosmosDb




Building Modern Web Applications with ASP.NET Core Blazor


Book Description

Learn Blazor from the ground up, with step-by-step instructions and code examples KEY FEATURES ● Explore the ins and outs of Blazor architecture and gain a comprehensive understanding of its components. ● Dive deep into the intricacies of Blazor deployment, ensuring smooth and successful launches. ● Uncover valuable tips and tricks for optimizing performance, ensuring scalability, and enhancing security. DESCRIPTION Building Modern Web Applications with ASP.NET Core Blazor is the ultimate guide to developing high-quality web applications with Blazor and .NET Core. Written by an experienced developer, this book provides a comprehensive overview of Blazor's architecture, components, deployment options, and best practices for optimizing performance and scalability. It begins by introducing WebAssembly, the technology that makes Blazor possible. It then discusses the different hosting models available for Blazor applications. Next, the book covers the basics of building Blazor applications, including how to create components, handle user input, and navigate between pages. The book then delves into more advanced topics, such as uploading and downloading files, using .NET and JavaScript interoperability, connecting to the world with HTTP, persisting data with EF Core, and protecting your application with identity. Finally, the book shows you how to deploy your Blazor application with Docker and Kubernetes. By the end of the book, you will be able to build modern, interactive web applications using Blazor and .NET Core. WHAT YOU WILL LEARN ● Gain the ability to develop interactive web applications effortlessly, while building a strong sense of confidence. ● Get familiar with the components model, common design patterns, and solutions implemented in Blazor. ● Learn how to seamlessly integrate and reuse legacy code by leveraging JavaScript interop capabilities within Blazor. ● Discover optimization techniques and best practices for enhancing application performance and scalability. ● Develop a solid grasp of key concepts in .NET Core backend development, including protocols and middleware. WHO THIS BOOK IS FOR Whether you're a seasoned developer or just starting, this book will provide you with the knowledge and skills you need to master Blazor and build powerful web applications. Familiarity with fundamental web development concepts, including HTML, CSS, and JavaScript, is assumed. TABLE OF CONTENTS 1. WebAssembly Introduction 2. Choose Your Hosting Model 3. Implementing Razor and Other Components 4. Advanced Techniques for Blazor Component Enhancement 5. File Uploading in Blazor 6. Serving and Securing Files in Blazor 7. Collecting User Input with Forms 8. Navigating Over Application 9. .NET and JavaScript Interop 10. Connecting to the World with HTTP 11. Data Persistence with EF Core 12. Protecting Your Application with Identity 13. Deploying with Docker and Kubernetes




Practical Multiple-Page Apps with ASP.NET Core and Angular Elements


Book Description

This book provides all the tools you need to develop ultra-modern multiple-page applications (MPAs) using ASP.NET Core Razor Pages, Angular elements, WebPack, RxJS, and mini-SPAs (Single-Page Applications). It will be useful for web programmers, business developers, and students of all skill levels who are interested in web-application developments.This book teaches you how to build a modern web site/application using a hybrid approach – the simplest being host one or more mini-SPAs within a larger multiple-page web application. It shows how to split a web application into functional parts, and convert each functional part into its own SPA. These mini-SPAs together form a complete multiple-page application. For each mini SPA, we use a simple JavaScript routing system to organize the states of the application and switch between different views by watching changes on the URL.The technical stack for backend consists of operating system, web server, database, and programming logic. This book chooses ASP.NET Core Razor Pages and SQL Server as the backend framework. A Razor page consists of a Razor view and a code behind file. Each Razor page is self-contained with its own view and code organized together, resulting in a simpler app, which makes coding page-focused scenarios easier and more productive. The front-end components enable the user's interaction with the web application. In this book, we choose TypeScript, npm, WebPack, RxJS, and Angular as our front-end technical stack. TypeScript is a modern JavaScript development language that provides optional static type checking, classes, and interfaces. It also offers advanced Intellisense, auto-completion, navigation, and refactoring, which makes code easier to read and understand. WebPack is a bundler and it comes in handy when you need to pack multiple assets together into a dependency graph. There is a rising tendency to use WebPack because it can fulfil nearly all tasks that you would perform through a task runner. RxJS is a library for reactive programming using observables, which make it easier to compose asynchronous or callback-based code. This book will explain how to use all of these technologies together to create a modern web application.Angular is a popular front-end JavaScript framework. Even though it is used for SPA development, we can still take advantage of this framework in building modern multiple-page web applications, i.e., we can use Angular in a non-SPA way via Angular elements. Angular elements are Angular components packaged as custom elements, a web standard for defining new HTML elements in a framework-agnostic way. This book shows how to embed Angular elements into our modern MPA project without having to migrate an entire application to Angular.This book also includes the other selected topics, including how to use Microsoft ML.NET to solve machine learning problems, such as classification, regression, and clustering; how to create various charts and graphics using ECharts; how to use SignalR to add real-time features to your web apps; how to use dependency injection, and how to create custom tag helpers and Razor Class Libraries in Razor Pages.




Web Applications with ASP.NET Core Blazor


Book Description

This book covers many different aspects of developing Blazor applications, a modern way to build rich UI web apps. It also introduces methods to leverage .NET and its eco-systems to build a modern enterprise application. It features WebAssembly and how it can be written in any programming language. The book also compares different Blazor hosting models and the strategy to select a model that suits specific business requirements. It is designed for web developers, software engineers, and tech enthusiasts looking to build robust, interactive web applications using ASP.NET Core Blazor. Using a demonstrative approach for Blazor learners, every chapter includes numerous code examples and a Blazor source code analysis. It covers basic Blazor directives and components and how these concepts can be combined together to build a more complex customized component. Master modern deployment techniques with Docker and Kubernetes. This book also explains some advanced techniques to control component rendering and improve performance. Companion files with code samples and color figures are available for downloading. FEATURES •Features code examples and detailed analysis to help you grasp Blazor concepts effectively •Learn advanced component enhancement, performance optimization, and secure file handling •Master modern deployment techniques with Docker and Kubernetes, ensuring your applications are production-ready •Download companion files with code samples and color figures