N-Tier Architecture .NET Core 3.1 Web API
Created by University Code, Last Updated 26-May-2020, Language:English
N-Tier Architecture .NET Core 3.1 Web API
Building a Multi Layer .NET Core 3.1 Web API from Scratch (SQL Server -EF Core-, MongoDB, Authentication with JWT )
Created by University Code, Last Updated 26-May-2020, Language:English
What Will I Get ?
- Creating Core Layer
- Data Access with Entity Framework for SQL Server
- Data Access with MongoDB
- Services — Business Logic
- API - Presenting our application
- Integrate the Authentication & Authorization with JWT (JSON Web Token)
- Application Client with ASP .NET CORE MVC to consume the APIs
- Swagger, AutoMapper
Requirements
- C#, OOP, Javascript, HTML, CSS
Description
Hello every one,
I decided to create this course because I actually couldn’t find many courses explaining on how to separate your application in multiple layers with ASP.NET Core 3.1 Web API.
Here we are building a nice API with basic CRUD (Create, Read, Update, Delete) operations. It will be an API for an app that stores which musics you like with its artists.
I will show you how to:
- Create an application in separated projects to make it decoupled from each module.
- Implement Repository and Unit of Work pattern.
- Use Entity Framework Core for persistence with SQL server.
- Use MongoDB Database for NoSQL
- Add AutoMapper for mapping models into API resources.
- Add Swagger to have a friendly API interface.
- Integrate the Authentication & Authorization with JWT (JSON Web Token)
- Application Client with ASP.NET CORE MVC to consume the APIs
And on top of all these, you'll get:
Download the source code
Course Content
-
Introduction
6 Lectures 00:20:28-
Introduction
Preview00:05:26 -
Getting Your Machine Ready
Preview00:04:00 -
What I Assume You Know ?
Preview00:00:43 -
What is Web API ?
00:02:55 -
Creating the global project Template
00:07:21 -
Download the project.zip
00:00:03
-
-
Creating the Core Layer
5 Lectures 00:15:51-
Introduction
Preview00:01:07 -
Creating the Models
Preview00:02:20 -
Interface Repository Pattern & Unit of work
00:07:48 -
Interface Services
00:04:33 -
Download the project.zip
00:00:03
-
-
Data Access Layer with SQL Server (Entity Framework Core)
9 Lectures 00:31:16-
Introduction
00:01:03 -
The configuration for SQL Server (EF Core)
00:02:27 -
The configuration of Table
00:04:17 -
Creating the DbContext
00:03:03 -
Creating the Repository
00:09:47 -
Creating the Dependency Injection
00:04:47 -
Creating the Database (Adding the Migration)
00:03:05 -
Initializing database
00:02:44 -
Download the project.zip
00:00:03
-
-
Data Access Layer with MongoDB
7 Lectures 00:21:41-
Introduction
00:00:50 -
What is MongoDB ?
00:02:47 -
Update Data Layer Core
00:04:17 -
The Configuration of the Project for MongoDB
00:04:31 -
Dependency Injection For MongoDB
00:04:26 -
Adding the ComposeRepository
00:04:47 -
Download the project.zip
00:00:03
-
-
Layer Services - Business Logic
3 Lectures 00:08:42-
Introduction
00:01:08 -
Creating the Layer Services
00:07:31 -
Download the project.zip
00:00:03
-
-
API Layer : Presenting the application
20 Lectures 01:27:11-
Introduction
00:02:04 -
What Is Swagger?
00:02:57 -
Adding the Controller
00:02:51 -
Creating the method GetAllMusic
00:03:03 -
AutoMapper
00:07:45 -
Creating the API GetMusicByID
00:03:31 -
Creating the API CreateMusic
00:08:29 -
Creating the API UpdateMusic
00:08:23 -
Creating the API DeleteMusic
00:02:45 -
Creating the API GetAllMusicByArtistByID
00:04:09 -
Creating the API GetAllArtist
00:03:35 -
Creating the API GetArtistById
00:02:44 -
Creating the API CreateArtist
00:07:58 -
Creating the API UpdateArtist
00:05:20 -
Creating the API DeleteArtist
00:02:17 -
Creating the API GetAllComposer
00:06:49 -
Creating the API CreateComposer
00:08:12 -
GetComposerById
00:02:46 -
Summary
00:01:30 -
Download the project.zip
00:00:03
-
-
Authentication with JWT (Json Web Token)
6 Lectures 00:27:29-
Introduction
00:03:22 -
Update the Layer Core
00:04:34 -
Update the Layer Data
00:08:25 -
Update the Layer Service
00:02:02 -
Web API of User
00:09:03 -
Download the project.zip
00:00:03
-
-
Consume Web API with application ASP.NET Core MVC 3.1
11 Lectures 01:04:46-
Introduction
00:00:29 -
Creating the project Client ASP.NET Core MVC
00:01:44 -
Creating the list of Music
00:10:24 -
Creating Add Music
00:09:03 -
Displaying the list of Composer
00:08:21 -
Consuming the authentication with ASP.NET Core MVC
00:10:58 -
Creating a Registration Form (New User)
00:07:22 -
Creating the authorization
00:06:43 -
Adding a New Composer
00:08:03 -
Get the Current User in API
00:01:36 -
Download the project.zip
00:00:03
-

University Code
E-learning IT
University Code is a platform IT Course Online helps to improve your understanding information technology; our specialty is Angular, React, .NET, Java, Database, Big Data
No matter if you are a beginner, intermediate or advanced, we have several courses for you.
About the course instructor:
SAI Bachir
Passionate Software Engineer
.NET Engineering and Development Engineer 12 years of experience in environmental application design and development Microsoft .NET Technologies .Net, Angular, .NET Core: ASP.Net WebForms, ASP.Net MVC, WinForms, WCF, WPF , ADO.Net, LINQ, Telerik. Modeling language: UML Web: Javascript, JQuery.