Clean Architecture Project Setup From Scratch With .NET 7

preview_player
Показать описание

Clean Architecture is a popular approach to organizing your .NET applications. I will show you how to set up the Clean Architecture completely from scratch. We'll start from a blank solution, and work our way up through the Clean Architecture layers.

Join my weekly .NET newsletter:

Read my Blog here:

Subscribe for more:

Chapters
0:00 Starting from scratch
0:42 Adding the Domain project
1:30 Adding the Application project
2:04 Installing MediatR and FluentValidation
3:08 Configuring dependency injection for Application project
5:19 Adding the Infrastructure project
6:34 Adding the Presentation project
7:31 Adding the Web API project
9:06 Configuring logging with Serilog
10:42 Clean Architecture is not a silver bullet
Рекомендации по теме
Комментарии
Автор

Hi Milan, thanks for this insight into the basic project setup which has been born out of experience. Just embarking on a new project and I am adopting DDD, CQRS and MediatR as having worked on a legacy project for the past 10 years I can see the benefits of this approach and I look forward to future videos!

andrewholloway-breward
Автор

Hey Milan, Great video and congrats on the MVP, you have been smashing it and are awesome!

jamesevans
Автор

Great video, I am trying to convince work to convert one of our solutions to implement the CLEAN architecture and this video has helped me focus my thoughts.

manofqwerty
Автор

Thanks for the video! It is important for beginners to know that once you get a hold of separating stuff you can adapt this structure to your case. Merge and rearrange. Even create your own modules and so. In my case I moved more towards a VSA and put controllers together with application code. As long as you clearly keep stuff logically separate it is OK.

marna_li
Автор

Love video, and channel as well. Find it very useful and educative. Thanks a lot!

artemvolsh
Автор

I'm really glad I found this channel. I was struggling to find these kind of videos before especially about DDD.

jaymarkestrera
Автор

Love these kind of video's. Thank you for the effort!

mohaarulez
Автор

Good explanation! Can't wait to see another architecture 😊

ToPFeE
Автор

Oh man :) Yesterday I've created a CQRS + Clean architecture web API. I went back and forth on your videos to structure the project :) I wish I had waited one more day :)

cansozbir
Автор

Thanks. Best explanation I have found. Simple to the point

caseyspaulding
Автор

thank you explaining things with diagrams. very clean

prasadmadushan
Автор

This is great for someone who is just starting interested in clean architecture
👍

vitek
Автор

Thanks for sharing! Ace Milan Jovanović

alexmadnix
Автор

This video is the best video when to talk in start configure you application with clean architecture.

DenisioRodrigues
Автор

Nice video my dear Milan Jovanovic! ;D Congrats!

bismarckmartinez
Автор

Nice video, thanks. Still eagerly awaiting your video on setting up a modular monolith with module registration. Perhaps you could use this video as a starting point by showing how to register two CA projects?

mylesdavies
Автор

great tutorials thanks a lot for your effort

islamAhmed-ilpt
Автор

enjoying the content, subscribed already

PROFDAILY
Автор

Great one. Could you please extend this video and show us one step further such as how we can add a helloworld endpoint that will fetch data from db and return json response. Basically we wanted to learn where to plant view models, where to put services, where to put repository and make it workable.

dfytq
Автор

Great Video simple and Clean :)
Good idea will be to record comparison of clean architecture approaches of ardalis vs jason taylor template.
One more idea maybe to record one without use of CQRS and MediatR in the Application layer.
keep up the good work
pozdrav iz Makedonije :)

danielserafimovik