Clean Architecture with Blazor for Beginners in .NET 8🔥

Поділитися
Вставка
  • Опубліковано 31 жов 2024

КОМЕНТАРІ • 49

  • @Chefrachida
    @Chefrachida 2 місяці тому +7

    more of this please, thank you for sharing

  • @LuisFernandoForeroGuzman
    @LuisFernandoForeroGuzman Місяць тому +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.

  • @andrewbrown729
    @andrewbrown729 19 днів тому +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  18 днів тому

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

  • @maacpiash
    @maacpiash 2 місяці тому +5

    These Blazor videos are awesome!

  • @williameisenman5538
    @williameisenman5538 2 місяці тому +1

    Please continue with your guided explanation, thank you for sharing

  • @johnpeake6653
    @johnpeake6653 2 місяці тому +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

  • @pilotboba
    @pilotboba 2 місяці тому +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.

  • @Stendors
    @Stendors 2 місяці тому +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 2 місяці тому

      Which blazor project type do you usually add?

  • @leahnjr
    @leahnjr Місяць тому

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

  • @ArashZandi20
    @ArashZandi20 2 місяці тому +6

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

  • @davevmb
    @davevmb 2 місяці тому +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!

  • @Shawn0919
    @Shawn0919 Місяць тому

    I like this Clean Architecture

  • @HernanIannella
    @HernanIannella 2 місяці тому

    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).

  • @EldonElledge
    @EldonElledge 2 місяці тому

    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.

  • @DrGaurangGupta
    @DrGaurangGupta 2 місяці тому

    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.

  • @acmesoft
    @acmesoft 2 місяці тому +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!

  • @MarkKwaakoAdams
    @MarkKwaakoAdams 2 дні тому

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

  • @catfishfortesque-smythe437
    @catfishfortesque-smythe437 2 місяці тому

    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.

  • @KNPhilip
    @KNPhilip 2 місяці тому +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.

  • @tsheponnene457
    @tsheponnene457 2 місяці тому +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

  • @Zafafcio
    @Zafafcio 2 місяці тому +1

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

  • @Rajeshsingh-ws5th
    @Rajeshsingh-ws5th 2 місяці тому

    good one, pls have more like that.

  • @shahnawazk
    @shahnawazk 2 місяці тому +1

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

  • @martinrod7319
    @martinrod7319 2 місяці тому

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

  • @abdullahm.3363
    @abdullahm.3363 2 місяці тому

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

  • @abduljalaltemitomzi4575
    @abduljalaltemitomzi4575 Місяць тому +1

    Thank you for this

  • @zischeshorts
    @zischeshorts 2 місяці тому +2

    Show us cqrs and mediator pattern also service pattern

  • @lasithadulshan7357
    @lasithadulshan7357 Місяць тому

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

  • @alphamaster2
    @alphamaster2 2 місяці тому +2

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

  • @vitorrochatech
    @vitorrochatech 2 місяці тому +1

    Mediator Architecture pleasee!!

  • @mans80
    @mans80 2 місяці тому

    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?

  • @Omar.bin.khattab
    @Omar.bin.khattab 2 місяці тому

    thanks so much bro :)

  • @juanhedderich
    @juanhedderich Місяць тому

    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.

  • @Edvard-Aliev
    @Edvard-Aliev 2 місяці тому +1

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

  • @Kokikaris
    @Kokikaris 2 місяці тому

    Thank you, kindly show us how to use web API

  • @MichaelBond
    @MichaelBond 2 місяці тому

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

  • @htoomyatlin8920
    @htoomyatlin8920 Місяць тому

    Please made a CQRS video

  • @way_no6810
    @way_no6810 2 місяці тому

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

  • @amirameri1354
    @amirameri1354 2 місяці тому +1

    Where is API project ?

  • @enriquellerena4779
    @enriquellerena4779 2 місяці тому

    Y’a i need a good architecture idea for blazor

  • @expert69able
    @expert69able 22 дні тому

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

  • @buba6422
    @buba6422 2 місяці тому

    more

  • @bahtiyarozdere9303
    @bahtiyarozdere9303 2 місяці тому +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 2 місяці тому

      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 2 місяці тому

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