Course Content

  • 1

    Course Introduction

  • 2

    Development Environment Setup

    • Setting up our Development Environment

  • 4

    .NET Project Setup

    • Setting up the project and using GitHub

    • Creating the .NET Solution (.sln)

    • Generating the .NET Web API Project

    • Making a GET Request to the API

    • Setting up launchsettings.json for non-Windows setup

    • Creating Services, Data, and Models Projects

  • 5

    Adding Nuget Dependencies

    • Adding Data Layer dependencies

    • Adding Service Layer and Web Layer dependencies

  • 6

    Data Access Layer Creation

    • Creating Entity Models and DbContext

    • Wiring up a PostgreSQL connection

    • Generating a Database Migration

  • 7

    Setting up PostgreSQL in Docker

    • Setting up docker-compose

    • Starting the PostgreSQL Container and Running a Migration

    • Running SQL Queries using pgadmin

  • 8

    Creating the Generic Repository

    • Creating IBlogRepository, BlogRepository in Data Project

    • Implementing BlogRepository

  • 9

    Article Business Logic: Controller, Service, DTOs

    • Starting the Article Controller

    • Creating ServiceResult and Starting DTOs

    • Completing our DTOs

    • Add Functionality to Article Controller

    • Add Functionality to Article Service

    • Continue Extending Article Service

  • 10

    Dependency Injection Setup

    • Dependency Injection Setup

  • 11

    Bugfix, Making HTTP Requests with Postman

    • Debugging with Postman

    • Finishing Article Controller

  • 12

    Adding Validation

    • Add FluentValidation

    • Register Validators, Newtonsoft.JSON

  • 13

    Configuring CORS

    • Allowing specific origins with CORS

  • 14

    Completing Article Service

    • Finish Implementing Article Service

  • 15

    Writing Unit Tests

    • Unit Test Project Introduction

    • Creating the xUnit Test Project

    • Starting ArticleService Unit Tests

    • Using Bogus to generate Test Data

    • Running our Unit Tests

    • Testing Validators

  • 16

    Implementing Comments, Tags, and Users Controllers and Services

    • Overview of Remaining Code

    • Comment Service

    • Comment Controller

    • Tag Service

    • Tag Controller

    • User Service

    • User Controller

    • Completing and Reviewing Startup.cs

    • Running the API and Testing new Routes with Postman

  • 17

    Project Wrap-Up

    • Congrats! Next Steps...