Tech Journey With Gagan
Saturday, March 28, 2026
Monday, August 18, 2025
How to make Scheduler with Azure Queue using .net
1.
Schedule and Reschedule Message
2. While Process=>
Code Snippet
Friday, August 1, 2025
How to Do Cross-Browser Testing on Windows — Including Safari via Playwright
Step 1. Install node
Step 2. create Folder and run these commands
commands
Step 3. update package.json 's scripts
package.json
Step 4. create Test folder in above folder and create file with name browser.test.ts and add below code
browser.test.ts
Step 5. run command npm run test:safari
Friday, July 18, 2025
How to Highlight a Link of Side Nav When It Has Multiple Child Links in Angular
๐ How to Highlight a Link When It Has Multiple Child Links in Angular
When building a sidebar in Angular, you might want to highlight a parent link when any of its child routes are active. Angular’s routerLinkActive only works for single routes — so here’s a quick 2-step solution using a custom directive.
-
Step 1: Create a custom directive
Write a directive that checks the current URL against a list of child links and adds anactiveclass if any match.
Step 1: Directive Code
-
Step 2: Use it in your template
On your parent menu link, pass the list of child URLs to the directive.
Step 2: Template Code
✅ Works with multiple child links, query parameters, and is easy to reuse.
✅ This blog is written by TechJourney with Gagan, sharing practical Angular tips for developers.
Tuesday, July 1, 2025
Create Search Functionality using 2 steps using pipe in Angular
Step1: Create a Pipe using below code.
Code Of Search Filter Pipe
Step2: write below code where you want to implement search like in drop down.
Code Snippet
In above code we use just
based on referece variable we took input and pass to pipe | searchByFilter:searchInput.value:'organizationName'"
Thursday, June 26, 2025
๐งฉ Implementing a Lightweight Query Handler in .NET using GMediator fully free for commerical use
In modern .NET applications, maintaining clean architecture is critical — and that’s where the Mediator pattern shines. It decouples the request/response flow and promotes separation of concerns.
While libraries like MediatR are popular, sometimes you want something even lighter — with zero dependencies.
Enter: GMediator, a custom lightweight mediator implementation.
In this blog, we’ll create a simple GET API using GMediator that returns a list of products stored in an in-memory store — no database, no ORM — just the core pattern in action.
๐งฑ Step 1: Define the Product Model
Code Snippet
๐พ Step 2: Create an In-Memory Store
Code Snippet
๐ฌ Step 3: Create the Query Request
Code Snippet
๐ฏ Step 5: Create the Controller
Code Snippet
๐งช Step 6: Register GMediator in Program.cs
Code Snippet
๐ก Final Thoughts
GMediator is a great option for internal projects, low-dependency APIs, or learning the Mediator pattern hands-on.
You can extend this by adding Create, Update, Delete, or integrating with a real database like SQLite or SQL Server.
Wednesday, June 11, 2025
Building a Scalable .NET Backend Using Clean Architecture (With Optional Layers) in just an second
๐งฑ What is Clean Architecture?
It's a way to structure your project into layers:
Domain – core business models
Application – commands, queries, interfaces
Infrastructure – external services (API, logging, etc.)
Persistence – database (EF Core, SQL)
API – controllers
Tests – optional unit/integration tests
⚙️ Script-Based Setup
You can auto-generate this structure using a simple CMD script.
✅ You choose what to include:
Want Infrastructure? Type y
Need Tests? Type n
Want to skip Persistence? Type n
Steps To use:
1. use notepad save below code as setup-architecture.cmd
Code Snippet
2. save this file in respective folder where u want your project files
3. open cmd at this location and run this script by just type its name only that is setup-architecture.cmd
-
Sometimes you add Angular SSR using @angular/ssr, but later want to return to a clean client-side app. Here's how to fully remove SSR (S...
-
Parallel processing in .NET can significantly improve performance when dealing with large collections. However, when working with scoped de...
-
This tutorial guides you through building an email notification system in ASP.NET Core using SendGrid. We’ll cover user registration, OTP em...
