The Complete ASP.NET Core 3 API Tutorial: Hands-On Building, Testing, and Deploying
- 3h 19m
- Les Jackson
- Apress
- 2020
Use this ASP.NET Core API tutorial and straightforward step-by-step guide to build, test, and deploy an ASP.NET Core API to Azure. It will help you code confidently and efficiently, and provides just what you need for context.
The book starts with detailing how to set up your development environment, and then introduces a variety of tools and technologies to build, test, and deploy your API. It covers tools such as .NET Core SDK, (Version 3.1), Visual Studio Code, Git, xUnit, Docker, PostgreSQL, Postman, Azure DevOps, Azure, AutoMapper, and many more.
Practical guidance is provided so you can achieve a tangible and valuable outcome, and you also are given a dose of theory on REST (Representational State Transfer), JSON, (JavaScript Object Notation), DTOs (Data Transfer Objects), and the MVC (Model View Controller) architectural pattern.
What You Will Learn:
- Build an ASP.NET Core API using C#, test it, and deploy it to Azure
- Understand concepts on Entity Framework Core
- Gain hard-earned secrets, shortcuts, and gotchas throughout the “build along”
- Get comfortable with ASP NET Core Environments
- Be introduced to unit testing, CI/CD pipelines, bearer authentication, and JSON Web Tokens (JWT)
This book is for developers using the Microsoft stack. Some basic understanding of .NET Core is assumed.
About the Author
Les Jackson is originally from Glasgow, Scotland but has lived and worked in Melbourne, Australia since 2009. Since completing his computer science degree in 1998, he has worked in IT, primarily in the telecommunications industry and with the incumbent national telecom providers. Les holds several industry accreditations and has re-acquired a Microsoft Certified Solution Developer certification, although he still believes there is no substitute for experience and passion and says, beware of people touting certifications! Aside from his day job, Les enjoys producing content for his YouTube channel and blog, where he hopes to grow his wonderful audience over the coming years. In his downtime he likes cycling, trying to grow vegetables, making (and drinking) beer, and traveling with his partner.
In this Book
-
Introduction
-
Setting Up Your Development Environment
-
Overview of Our API
-
Scaffold Our API Solution
-
The "C" in MVC
-
Our Model and Repository
-
Persisting Our Data
-
Environment Variables and User Secrets
-
Data Transfer Objects
-
Completing Our API Endpoints
-
Unit Testing Our API
-
The CI/CD Pipeline
-
Deploying to Azure
-
Securing Our API