ASP.NET Core 8 Web API: Clean architecture + Azure services

Build .NET 8 APIs in Clean Architecture, user Identity system and Azure deployment using CI/CD + practical exercises

  • 0.0 (0 Reviews)
  • 0 Students
  • 112 Lessons
  • Jakub Kozera

Course Overview

Master Clean Architecture & Azure for Scalable APIs in ASP.NET Core 8

Ready to build robust, high-performance RESTful APIs with confidence? This comprehensive course empowers you with the knowledge and skills to create modern web APIs using the powerful combination of ASP.NET Core 8, Clean Architecture, and Azure services.


Your journey begins with understanding the fundamentals:

  • RESTful API essentials: Demystify HTTP communication, grasp REST principles, and set up your local development environment.

  • ASP.NET Core 8 mastery: Dive into routing, model binding, and HTTP client usage to build the foundation of your API.

  • Clean Architecture adoption: Learn the benefits and principles of Clean Architecture, and apply them to structure your API for maintainability and flexibility.


Next, you'll establish the infrastructure:

  • Database connection with Entity Framework: Set up your MS SQL database and leverage Entity Framework for seamless data interaction.

  • Seeding mechanism: Populate your database with essential data for realistic testing and functionality.

Ready to build features? Buckle up!

  • RESTful resource management: Create, retrieve, update, and delete resources following REST best practices.

  • DTO mapping and validation: Ensure data integrity and security with efficient mapping and Fluent Validation.

  • Command/Query Responsibility Segregation: Organize your code with a clear separation of concerns using MediatR.


More than just features - enhance your API's robustness:

  • Logging with Serilog: Track API events for troubleshooting and maintainability.

  • Automated documentation: Generate clear API documentation for easy client integration.

  • Global exception handling: Gracefully handle errors and provide informative feedback to clients.


Deep dive into advanced topics:

  • Sub-entity management: Handle nested resources within your main entities with proper RESTful structure.

  • User authentication and authorization: Secure your API with user accounts, roles, and custom claims using ASP.NET Identity.

  • Pagination and sorting: Optimize performance for large datasets with pagination and sorting capabilities.


Testing and deployment are crucial:

  • Automated unit and integration tests: Ensure code quality and prevent regressions with comprehensive testing strategies.

  • Azure deployment: Leverage Azure App Service and Azure SQL to deploy your API to a scalable cloud environment.

  • CI/CD pipelines: Automate deployment processes for efficient updates and bug fixes.


By the end of this course, you'll be equipped to:

  • Architect and build secure, maintainable, and scalable RESTful APIs.

  • Confidently leverage Clean Architecture principles for code organization.

  • Utilize powerful Azure services for deployment and scalability.

  • Implement best practices for performance, logging, testing, and documentation.

Enroll now and take your .NET WEB API development skills to the next level!

See more

FAQ

FAQ area empty

Course curriculum

14 chương 112 bài học 14 giờ 4 phút 7 bài học thử miễn phí
Chương 1 Course introduction
Chương 2 REST Web API
Chương 3 Solution architecture
  • Module introduction 0:19
  • Clean architecture 4:58
  • Adding solution modules 4:52
  • Defining entities 6:19
Chương 4 Setting up infrastructure
  • Module introduction 0:33
  • Entity Framework overview 5:14
  • Installing EF 15:54
  • Flexible Database connection 10:19
  • Seeding data 7:55
  • Exercise - migration 3:31
Chương 5 API Controller
  • Module introduction 0:30
  • Retrieving entities 12:56
  • Exercise - getting specific resource 7:15
  • Returing DTOs 9:59
  • Automapper 8:57
  • Automapper package update
  • Creating resources 11:21
  • Model validation 10:15
  • FluentValidation 12:58
Chương 6 CQRS + MediatR
  • Module introduction 0:28
  • CQRS Introduction 6:02
  • CQRS with MediatR 15:38
  • Deleting resources 8:53
  • Exercise - Updating resources 11:03
Chương 7 Web API utilities
  • Module introduction 0:31
  • Adding logger 13:19
  • Logging to a file 8:46
  • Swagger docs 9:53
  • Exception Handling middleware 9:24
  • Custom Exceptions 7:38
  • Exercise - Time logging middleware 5:06
Chương 8 Subentities
  • Module introduction 0:14
  • Subentities in REST 2:33
  • Creating subentities 15:06
  • Retrieving subentities 11:00
  • Exercise - removing sub entities 6:13
  • Location header for subentity 3:26
Chương 9 Authentication
  • Module introduction 0:35
  • What is authentication 2:59
  • ASP.NET Identity 13:13
  • Swagger support of identity 7:33
  • Extracting presentation layer services 2:16
  • Authentication setup 8:00
  • User Context 9:27
  • Extending user definition 13:23
Chương 10 Authorization
  • Module introduction 0:35
  • What is authorization 3:48
  • Role based authorization 13:06
  • Assigning user roles 12:31
  • Exercise - Unassigning user role 7:06
  • Custom user claims 7:41
  • Claim based access control 9:20
  • Custom authorization requirements 12:11
  • User resources 11:08
  • Resource based authorization 15:41
  • Exercise - authorization policy 9:57
Chương 11 Results pagination
  • Module introduction 0:30
  • Pagination introduction 7:51
  • Filtering results 10:09
  • Results pagination 18:43
  • Pagination request validation 6:09
  • Sorting results 10:38
  • IQueryable methods order 3:50
Chương 12 Automated testing
  • Module introduction 0:34
  • Automated tests - introduction 6:01
  • Quick unit test creation 7:06
  • Current user tests 8:59
  • UserContext Tests 10:51
  • Validator tests 8:19
  • Mapping test 8:04
  • CommandHandler tests 8:32
  • Exercise - unit tests 11:06
  • Authorization policies tests 9:26
  • Middleware test 6:01
  • Controller integration tests 5:49
  • Testing endpoints with authorization 10:07
  • Adjusting solution structure 4:46
Chương 13 Azure Cloud deployment and services
  • Module introduction 0:22
  • Azure - introduction 4:24
  • Creating Azure App service 14:43
  • Deploying API to web app 4:53
  • Setting up Azure SQL 10:45
  • Connection to Azure SQL & automatic migrations 13:38
  • Application insights 11:28
  • Blob storage 9:39
  • Uploading to blob storage 18:09
  • Generating blob SAS url 10:44
  • Working with blobs locally 9:07
  • Exercise - deploying azure resources 11:34
  • Exercise solution - Deploying azure resources 12:33
Chương 14 Continuous Integration and Continuous Deployment
  • Module introduction 0:29
  • Continous Integration (CI) 2:54
  • CI in Github actions 11:05
  • Pull request policy 7:11
  • Continous Delivery/Deployment (CD) 2:42
  • Continous deployment pipeline 15:18
  • Continous delivery 5:39

Requirment

  • Basic C# knowledge (LINQ, async/await and generic collections)

Outcomes

  • Create a backend for a web application that will add, modify, delete, or return data.

  • Build an MS SQL database based on C# classes.

  • Add authentication and authorization for API users.

  • Create a Clean architecture solution following CQRS

  • Implement custom middleware.

  • Handle files - return them from the API and upload to the server.

  • Log application information or errors to text files using Serilog.

  • Write a CI/CD pipelines to automatically build and deploy the app.

  • Write automated unit & integration tests

  • Deploy the application to the Azure cloud.

Instructor

...
Jakub Kozera

0.0

  • ... 0 Student
  • ... 1 Course
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all