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 Features
- Discover tenants of clean architecture in the latest ASP.NET Core 5 Web API
- Develop Vue.js 3 single-page applications (SPAs) using TypeScript and Vuex
- Learn techniques to secure, test, and deploy your full-stack web apps on Azure
Book 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 learn
- Discover CQRS and mediator pattern in the ASP.NET Core 5 Web API
- Use Serilog, MediatR, FluentValidation, and Redis in ASP.NET
- Explore common Vue.js packages such as Vuelidate, Vuetify, and Vuex
- Manage complex app states using the Vuex state management library
- Write integration tests in ASP.NET Core using xUnit and FluentAssertions
- Deploy 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.
Table of contents
- ASP.NET Core and Vue.js
- Contributors
- About the author
- About the reviewer
- Preface
- Section 1: Getting Started
- Chapter 1: Getting Started with ASP.NET Core and Vue.js
-
Chapter 2: Setting Up a Development Environment
- Technical requirements
- Installing and configuring VS Code, Visual Studio 2019, VS for Mac, and Rider
- Installing .NET SDK, Node.js, and npm
- Setting up the .NET Core CLI and Vue CLI
- Installing Postman and Vue DevTool
- Installing Entity Framework Core tools
- Installing a database provider
- Installing Git version control
- Summary
- Section 2: Backend Development
- Chapter 3: Starting Your First ASP.NET Core Project
- Chapter 4: Applying Clean Architecture to an ASP.NET Core Solution
- Chapter 5: Setting Up DbContext and Controllers
- Chapter 6: Diving into CQRS
- Chapter 7: CQRS in Action
- Chapter 8: API Versioning and Logging in ASP.NET Core
- Chapter 9: Securing ASP.NET Core
- Chapter 10: Performance Enhancement with Redis
- Section 3: Frontend Development
- Chapter 11: Vue.js Fundamentals in a Todo App
- Chapter 12: Using a UI Component Library and Creating Routes and Navigations
- Chapter 13: Integrating a Vue.js Application with ASP.NET Core
-
Chapter 14: Simplifying State Management with Vuex and Sending GET HTTP Requests
- Technical requirements
- Understanding complex state management
- Sending an HTTP request in Vue.js
-
Setting up state management using Vuex
- Step 1 – Writing a store
- Step 2 – Writing a module
- Step 3 – Writing a module if we are using TypeScript
- Step 4 – Writing an API service
- Step 5 – Writing an action type
- Step 6 – Writing an action
- Step 7 – Writing a state
- Step 8 – Writing a mutation
- Step 9 – Writing a getter
- Step 10 – Updating the store by inserting the module
- Step 11 – Updating components with mapGetters and mapActions
- Summary
- Chapter 15: Sending POST, DELETE, and PUT HTTP Requests in Vue.js with Vuex
- Chapter 16: Adding Authentication in Vue.js
- Section 4: Testing and Deployment
- Chapter 17: Input Validations in Forms
- Chapter 18: Writing Integration Tests Using xUnit
- Chapter 19: Automatic Deployment Using GitHub Actions and Azure
- Other Books You May Enjoy
Product information
- Title: ASP.NET Core and Vue.js
- Author(s):
- Release date: June 2021
- Publisher(s): Packt Publishing
- ISBN: 9781800206694
You might also like
book
ASP.NET Core 5 and React - Second Edition
Build fully functional, cloud-ready, and professional web applications using the latest features in the .NET 5 …
book
ASP.NET Core in Action
ASP.NET Core in Action is for C# developers without any web development experience who want to …
book
ASP.NET Core in Action, Second Edition
Fully updated to ASP.NET 5.0, ASP.NET Core in Action, Second Edition is a hands-on primer to …
book
ASP.NET Core 5 and Angular - Fourth Edition
Build robust modern web applications using .NET 5, Entity Framework Core, and Angular 11 Key Features …