All paths
ASP.NET CoreIntermediate

ASP.NET Core

Build APIs and web apps with ASP.NET Core and C#: minimal APIs and controllers, routing, dependency injection, middleware, configuration, Entity Framework Core, authentication and deploy. Take C# to a job-ready level.

12 chapters36 lessons48 challenges

Course curriculum

Chapter 1: Introduction to ASP.NET Core

  • What ASP.NET Core is
  • Program.cs: the entry point
  • Minimal APIs vs Controllers

Chapter 2: Routing and endpoints

  • HTTP methods
  • Route and query parameters
  • Controllers and attribute routing

Chapter 3: Request and response

  • Reading the request body
  • Returning responses
  • Where parameters come from

Chapter 4: Dependency Injection

  • The service container
  • Service lifetimes
  • Receiving services

Chapter 5: Middleware and pipeline

  • The request pipeline
  • Built-in middleware and order
  • Custom middleware

Chapter 6: Configuration and environments

  • appsettings and IConfiguration
  • Environments
  • Options pattern and secrets

Chapter 7: Validation and DTOs

  • Data annotations
  • ModelState and ProblemDetails
  • DTOs: separating models

Chapter 8: Entity Framework Core

  • DbContext and DbSet
  • Queries and CRUD with LINQ
  • EF Core migrations

Chapter 9: Authentication and authorization

  • Authentication vs authorization
  • Protecting endpoints
  • Roles, policies and claims

Chapter 10: Errors and logging

  • Centralized error handling
  • Logging with ILogger
  • Consistent error responses

Chapter 11: API design and best practices

  • Designing a REST API
  • OpenAPI and Swagger
  • Async, CORS and versioning

Chapter 12: Testing and deploy

  • Testing an ASP.NET Core app
  • Build and deploy
  • The full picture

Ready to level up?

Create a free account and start now: earn XP on every challenge and climb the leaderboard.

ASP.NET Core — LevelUpCode