Posts

Showing posts from 2021

Blocks

Image
Submisssion Summary && Submission Editor  :  Submission Combo Block Role Editor : Role Editor Block

Implement CQRS with MediatR in ASP.NET Core Web API

Image
  https://www.c-sharpcorner.com/article/implementing-cqrs-with-mediatr-in-asp-net-core-application/ https://www.c-sharpcorner.com/article/cqrs-pattern-using-mediatr-in-net-5/ https://www.youtube.com/watch?v=bgoGtkmUAQg https://www.youtube.com/watch?v=T1qyGmdgSQE The Command and Query Responsibility Segregation(CQRS) is an architectural pattern that separates the read and writes operations of a data source Mediator  is used to reduce communication complexity between multiple objects or classes. This pattern provides a mediator class which normally handles all the communications between different classes and supports easy maintenance of the code by loose coupling. Mediator pattern falls under behavioural pattern category.   Basically, a Mediator perform 2 operations. · Accept the incoming request · Handles the incoming request and provide the response. CQRS  +  Mediator  Patterns are prefered over large projects. Advantages of CQRS Independent scaling Optimized data transfer objects Prov

Angular Help

Image
https://rubolchow.blogspot.com/2023/02/blog-post.html https://nodejs.org/en/download/ Publish : ng build  is the  command  you use when you're ready to build your application and deploy it. Run the command npm install in the terminal. This command will read the package.json file and install all the required dependencies into a node_modules folder in your project.  C:\>node -v c:\users\ng --version c:\users>npm install @angular/cli npm install -g @angular/cli@1.0.0  //npm install @angular/cli@latest   //npm install -g @angular/cli@latest ng serve -- open npm start open vs project in VS code: code . npm install -g @angular/cli@9.1.11 npm uninstall -g @angular/cli                                              Angular CLI Commands   : https://www.c-sharpcorner.com/article/quick-preview-angular-cli-commands/ ng generate module/component/service/class name ng generate component login //ng generate component register ng g c login ng generate module user-auth //1 file ng g c user-a

git

Image
Bangla https://www.youtube.com/watch?v=oe21Nlq8GS4&t=1721s   https://zepel.io/blog/13-git-commands/ https://www.youtube.com/watch?v=4KdGgGsIDeA&t=3940s  

New J

Strategy_Pattern

 namespace WindowsFormsApp {     public interface IEmployeeSal     {          float GetSalary(int basic,float dividend,float commission);     } } namespace WindowsFormsApp {     public class HRDeptSalary : IEmployeeSal     {        // @Override          public float GetSalary(int basic, float dividend, float commission)         {             return basic + dividend+commission;         }     }     public class SalesDept : IEmployeeSal     {         // @Override          public float GetSalary(int basic, float dividend, float commission)         {             return basic + dividend+commission;         }     }     public class PurchaseDept : IEmployeeSal     {         // @Override          public float GetSalary(int basic, float dividend, float commission)         {             return basic + dividend;         }     } } namespace WindowsFormsApp {     public class EmployeeSalary     {         public string EmployeeName { get; set; }         public int Basic { get; set; }         private

microservices

Image
  What are microservices? Microservices - also known as the microservice architecture - is an architectural style that structures an application as a collection of services that are Highly maintainable and testable Loosely coupled Independently deployable Organized around business capabilities Owned by a small team The microservice architecture enables the rapid, frequent and reliable delivery of large, complex applications. It also enables an organization to evolve its technology stack. Installing on Windows :  https://www.rabbitmq.com/install-windows.html  Stop then start C:\Program Files\RabbitMQ Server\rabbitmq_server-3.12.11\sbin> rabbitmq-plugins.bat list C:\Program Files\RabbitMQ Server\rabbitmq_server-3.12.11\sbin> rabbitmq-plugins.bat enable rabbitmq_management