Clean Architecture with Blazor for Beginners in .NET 8🔥

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 52

  • @Chefrachida
    @Chefrachida 3 หลายเดือนก่อน +8

    more of this please, thank you for sharing

  • @maacpiash
    @maacpiash 3 หลายเดือนก่อน +6

    These Blazor videos are awesome!

  • @LuisFernandoForeroGuzman
    @LuisFernandoForeroGuzman 2 หลายเดือนก่อน +5

    Excellent introduction.
    Wouldn't it be nice to create a CRUD app following this architecture?
    Create a domain class.
    Create entities using Entity Framework. 2.1. Implement the repository pattern - Unit of Work.
    Create an API project to consume Entity Framework.
    Create a page/component to CRUD the entity.
    In the same solution - access data using CQRS, Mediator, and any necessary packages.
    In the same solution - access data from a different data source (MySql for example) so really understand the Repository pattern.

    • @jabalahkhaldun3467
      @jabalahkhaldun3467 หลายเดือนก่อน

      I personally prefer dapper to entity framework 😊

  • @pilotboba
    @pilotboba 3 หลายเดือนก่อน +2

    Clear. A few small changes I would use or suggest.
    The src folder is only a solution folder, not a file folder. So, for those using VSCode or NeoVim or whatever, they don't benefit from this folder structure. I would add also a real file system folder and when I create the projects be sure they are in the src folder as well as the solution folder. Also, having real folders can help with build automation. Actually, you don't really need the solution folders. But, I could go either way on that one.
    Second, I think it is redundant to put the solution name on the projects. Just call the projects Application, Infrastructure, WebUI.Server etc. If you really want the solution name on the output assemblies you can go into the projects and specify the assembly name that will be created.

  • @johnpeake6653
    @johnpeake6653 3 หลายเดือนก่อน +2

    As usual, Great video. I had all of my injections in the Server (API) Program class but have moved the injections to the Application layer and it works fine. Better and cleaner. Thanks

  • @ArashZandi20
    @ArashZandi20 3 หลายเดือนก่อน +7

    Please make service pattern tutorial videos...
    Thank you for this video

  • @williameisenman5538
    @williameisenman5538 3 หลายเดือนก่อน +1

    Please continue with your guided explanation, thank you for sharing

  • @davevmb
    @davevmb 3 หลายเดือนก่อน +2

    Hi Patrick, great introduction video to clean architecture and Blazor. I’m wondering when adding authentication and authorization with the server and wasm how that fits in with the clean architecture as MS pushes its own defaults when using the template that contradict with clean architecture. I’m also curious to see how to add additional user related fields and how to handle them correctly both on the server and wasm project. Since both now usually coexist side by side its a bit confusing. Thanks and keep up the great work!

  • @Stendors
    @Stendors 3 หลายเดือนก่อน +2

    Every time you say "comment and I'll do an extended video of this" I'm like, I also want that. To be honest this can be a complete series, I already work with clean architecture and Blazor, but I would like to see your take on all the different factors related to clean architecture.

    • @jessedv5915
      @jessedv5915 3 หลายเดือนก่อน

      Which blazor project type do you usually add?

  • @DrGaurangGupta
    @DrGaurangGupta 3 หลายเดือนก่อน

    Although I’m not a professional developer, I’m currently building a large application single handed and the biggest confusion I’m facing is that can (or should) I reference the domain objects in the Blazor project or should we keep the model classes also clean by using DTOs?
    I’ve gone through blogs and StackOverflow and there’s a lot of valid debates out there for both approaches.
    This is what I was hoping to obtain when I saw the videos’s title.
    So I guess, if you continue this solution a bit further by creating a real-world example, a lot of such doubts (which I’m sure many people are curious to know) would be answered.
    Love your content, simple and focused.

  • @Khan007-y5y
    @Khan007-y5y 18 วันที่ผ่านมา +1

    Thank you for these motivating words! I’m excited to keep practicing and getting more comfortable with Clean Architecture. ❤‍🔥

  • @HernanIannella
    @HernanIannella 3 หลายเดือนก่อน

    I love your videos. In this case, I have to say that under the title "Clean Architecture with Blazor" you have a lot of prerequisites: Mediator/CQRS, dependency injection, interfaces, extension methods, etc. I understood everything you said because I've been dealing with this architecture for a while, but for someone who is starting with this subject, the title is a little bit misleading. I know you have videos on these topics and they've been of great help. Just so you know, I think it would have been better to title the video "Blazor as the presentation layer to CA". In that way people who already know CA and its intricacies would know how to add Blazor to the mix. I love your chanel, keep up the good work! (kudos for explaining the an API is still part of the presentation layer even though it looks like server-side stuff).

  • @Zafafcio
    @Zafafcio 3 หลายเดือนก่อน +2

    How does it look in case of using Identity? Is it treated as a part of presentation or should be moved to another layer?

  • @EldonElledge
    @EldonElledge 3 หลายเดือนก่อน

    This was a good explanation. Thank you.
    I am thinking about doing a complete series of videos on developing enterprise levels applications, from beginning to end. From Architecture and design to development all the way through to deployment. I would talk about the thought process and making decisions. I hope to create something at simple and clear as this. My focus would be to explain this at the beginner level and then take beginners to the next level.

  • @KNPhilip
    @KNPhilip 3 หลายเดือนก่อน +1

    While reading the book “Clean Architecture” I’ve noticed the focus on individual deployability. So basically to have Interactors/Services at the core, and UI (Blazor) point at that through polymorphic interfaces.
    So, I was wondering - Can you show an example of that with Clean Architecture and Blazor? Swapping one DLL (Blazor) with another DLL (Which could also just be Blazor for simplicity) without recompiling and redeploying the Interactors/Services? I think that could show the real powers of Clean Architecture and also the OCP.

  • @leahnjr
    @leahnjr 2 หลายเดือนก่อน

    That was cool, I would like to see you build on it. Like Part II

  • @andrewbrown729
    @andrewbrown729 หลายเดือนก่อน +1

    Vertical slice would be a lot more interesting to me. I wish you had a paid course on VSA with blazor (or maybe extra lessons within your CA course, moving to VSA)

    • @PatrickGod
      @PatrickGod  หลายเดือนก่อน

      Hey Andrew, VSA will be covered in the .NET Web Academy. So, stay tuned! 😉

  • @acmesoft
    @acmesoft 3 หลายเดือนก่อน +1

    Can you make a video with this implementation with mediatr, cqrs, ef core, redis, and net aspire? Personally I don’t care about the duration, but it will be a good look of all pieces working together as a template. This kind of complete project is good to learn all concepts applied in the real life. Thank you!

  • @catfishfortesque-smythe437
    @catfishfortesque-smythe437 3 หลายเดือนก่อน

    Nice. I'd be interested in a video about Blazor and GraphQL - and whether that would still be compatible with the typical CQRS / Mediatr approach which is typically paired with REST.

  • @LCCFerchoCC
    @LCCFerchoCC 21 วันที่ผ่านมา

    thank you for your support

  • @abdullahm.3363
    @abdullahm.3363 2 หลายเดือนก่อน

    Great video, easy to understand.
    What about the clean architecture with vertical slice, is it similarly approach?

  • @zischeshorts
    @zischeshorts 3 หลายเดือนก่อน +2

    Show us cqrs and mediator pattern also service pattern

  • @juanhedderich
    @juanhedderich 2 หลายเดือนก่อน

    Great video! Can you make a video using this template in a real-World-example? I am really new to .NET development and I have no idea how to actually use this template.

  • @lasithadulshan7357
    @lasithadulshan7357 หลายเดือนก่อน

    Great content! Do u can make a tutorial full project in clean architecture?

  • @MarkKwaakoAdams
    @MarkKwaakoAdams 26 วันที่ผ่านมา

    its very clean . i really want to see the whole thing built into a crud application

  • @Rajeshsingh-ws5th
    @Rajeshsingh-ws5th 3 หลายเดือนก่อน

    good one, pls have more like that.

  • @mans80
    @mans80 3 หลายเดือนก่อน

    Very nice, how would it be if I am building Blazor app and MAUI app together? How to reference domain, application and infrastructure layers? do I need to build WebAPI?

  • @Shawn0919
    @Shawn0919 หลายเดือนก่อน

    I like this Clean Architecture

  • @martinrod7319
    @martinrod7319 3 หลายเดือนก่อน

    great video, I would like to see more about this topic in future videos

  • @shahnawazk
    @shahnawazk 3 หลายเดือนก่อน +1

    Nice video! But we want more detailed and complete example with 2 or more domain entities. Please do that.

  • @tsheponnene457
    @tsheponnene457 3 หลายเดือนก่อน +5

    i would love to see this more in detail . .. a lot of clean architecture code uses CQRS, they have mediator and all these extra packages, can you do one just as a simple .net core application as is out of the box

  • @abduljalaltemitomzi4575
    @abduljalaltemitomzi4575 2 หลายเดือนก่อน +1

    Thank you for this

    • @PatrickGod
      @PatrickGod  2 หลายเดือนก่อน

      Any time! 😊

  • @alphamaster2
    @alphamaster2 3 หลายเดือนก่อน +2

    Now you have to tell us what you put on these projects

  • @vitorrochatech
    @vitorrochatech 3 หลายเดือนก่อน +1

    Mediator Architecture pleasee!!

  • @Kokikaris
    @Kokikaris 3 หลายเดือนก่อน

    Thank you, kindly show us how to use web API

  • @Edvard-Aliev
    @Edvard-Aliev 3 หลายเดือนก่อน +1

    Привет, спасибо большое за видео 😊

  • @niroi3182
    @niroi3182 17 วันที่ผ่านมา

    How to add identity to the Clean Architecture from existing project?

  • @way_no6810
    @way_no6810 3 หลายเดือนก่อน

    can you provide a video with Clean Architecture and .net Aspire?

  • @Omar.bin.khattab
    @Omar.bin.khattab 3 หลายเดือนก่อน

    thanks so much bro :)

  • @htoomyatlin8920
    @htoomyatlin8920 2 หลายเดือนก่อน

    Please made a CQRS video

  • @MichaelBond
    @MichaelBond 3 หลายเดือนก่อน

    I’d love to see a GitHub repo with just this boiler plate solution setup, so I can peek and poke around myself.

  • @expert69able
    @expert69able หลายเดือนก่อน

    Newer understood why you need write solution name in your projects name? What's the point?

  • @amirameri1354
    @amirameri1354 3 หลายเดือนก่อน +1

    Where is API project ?

  • @enriquellerena4779
    @enriquellerena4779 3 หลายเดือนก่อน

    Y’a i need a good architecture idea for blazor

  • @buba6422
    @buba6422 3 หลายเดือนก่อน

    more

  • @bahtiyarozdere9303
    @bahtiyarozdere9303 3 หลายเดือนก่อน +1

    This is a nice explanation. However this is just another type of video that does not demonstrate the purpose or value of the clean architecture. Also not a real implementation here. There are bunch of challenges when we apply clean architecture to a real life application. It would be very nice and much more useful to see an implementation of few features ( not a one crud feature which has no challenges at all ) that shows the general implementation by a hands on experience. As a dotnet developer of 20 years, personally I am sick of counter and to-do application demonstrations, beside this type of overly simplified theoretical implementations.
    I searched for clean architecture implementation in none of the other stacks beside Java and C# is putting this much of attention to it. We have to understand the value of it by seeing pros and cons with an on hands experience. This is just tunnel vision.
    I appreciate the afford, however this looks like just another "Clean architecture 🔥" video that shows no value of the implementation, created for the sake of clicks and attention.
    Have a nice day.

    • @DrGaurangGupta
      @DrGaurangGupta 3 หลายเดือนก่อน

      I disagree here. I had a lot of doubts when I first started to learn Clean Architecture. This video clarifies few such doubts. So I wish I had such good explanation at the time.
      So this is definitely going to be helpful for a beginner. For example, I had a query in my mind that the presentation layer is not supposed to reference the domain layer, then how are we supposed to inject services in the Program.cs? So I thought, should it be done through extension methods? And this video confirms my approach.
      But I hear what you’re saying. Now that the projects are setup, we deserve follow up videos with some business case.

  • @jimmcneal
    @jimmcneal 3 หลายเดือนก่อน

    I hate to say it, but Blazor seems dead in terms of jobs, anyone agree / disagree?