Tic Tac Toe Game with Blazor WebAssembly

Let's Build a Tic Tac Toe Game with Blazor WebAssembly!

Hey there, fellow developer! In this tutorial, I’ll walk you through building an awesome Tic Tac Toe game using Blazor WebAssembly. So grab your coding gear, and let’s get started! To check the full source code, you can visit github/mhdbouk/tictactoe-blazor. Step 1: Set Up the Blazor WebAssembly Project First things first, we need to set up a new Blazor WebAssembly project. Do your thing with the command line or your favorite IDE like Visual Studio or Visual Studio Code. Get that project ready for some Tic Tac Toe action! ...

August 29, 2023 · 9 min · Mohamad Dbouk
Mapperly Logo

Mapperly: The Coolest Object Mapping Tool in Town

Hey there, developers! Today I want to talk about an astonishing .NET library called Mapperly, which has been gaining much attention in the developer community. Mapperly is a powerful source generator that simplifies the implementation of object-to-object mappings in .NET applications. Mapperly takes mapping to a whole new level by generating mapping code for you based on the mapping method signatures you define. If you’re tired of writing repetitive mapping code and seeking a seamless solution to simplify object mappings in your .NET projects, Mapperly is the answer you’ve been waiting for. Join me in this blog post to learn more! ...

July 13, 2023 · 5 min · Mohamad Dbouk
NuGet Unauthorized Access Issue

How to Resolve Unauthorized Access Issue with Private NuGet Repository

Have you ever encountered an issue while trying to restore packages from a private NuGet repository in JetBrains Rider using Azure DevOps? I recently faced a similar problem and struggled with the “401 Unauthorized” error. In this blog post, I will guide you through the steps I took to fix this issue. So, let’s dive in! Azure DevOps and Private NuGet Repositories Azure DevOps is a comprehensive platform that provides a range of tools for software development, including package management with NuGet. Private NuGet repositories in Azure DevOps allow you to host and manage your own packages. You may encounter authentication challenges when you try to restore packages from a private NuGet repository. ...

June 12, 2023 · 4 min · Mohamad Dbouk
CodeWhisperer: Amazon Answer to GitHub Copilot

CodeWhisperer: Amazon Answer to GitHub Copilot

Hey friends, have you heard the latest news about AWS? Amazon has just released CodeWhisperer, an AI tool that you can use inside your IDE. This new tool is similar to GitHub Copilot, but it’s free for individuals, and it has some additional features that make it stand out. In this blog post, we’ll take a closer look at CodeWhisperer and see how it compares to its competitors. Me trying to code without CodeWhisperer ...

April 15, 2023 · 6 min · Mohamad Dbouk
Spectre.Console Logo

How to create beautiful console applications with Spectre.Console

Hey there friends! If you are a .NET developer who loves to create console applications, you might have wondered how to make them more appealing and user-friendly. Sure, you can use Console.WriteLine and Console.ReadLine to output some text and get some input, but that’s pretty boring and limited. What if you want to display some colors, styles, tables, trees, progress bars, or even ASCII images? What if you want to parse command-line arguments and create complex commands like git, npm, or dotnet? ...

March 19, 2023 · 6 min · Mohamad Dbouk
Integration Testing and Minimal API in .Net 7

Say Hello to Reliable Minimal APIs with Integration Tests

Hi there! Integration testing is an important part of the software development process because it helps ensure that your APIs are working correctly and returning the expected result. Unfortunately, many people often mix up integration tests with mock testing and use mock for integration tests. This can lead to issues when testing APIs, as mock tests don’t provide a complete picture of how your code will behave in a real-world scenario. ...

January 8, 2023 · 7 min · Mohamad Dbouk
Azure SonarQube

From Frustrated to Successful: My Experience Deploying SonarQube in Azure

SonarQube is a popular open-source platform for continuous code inspection that helps developers identify and fix coding issues, security vulnerabilities, and other bugs in their codebase. As someone who has worked on multiple software projects, I can attest to the importance of having a tool like SonarQube in your toolkit. It saves time and prevents headaches by catching issues early on rather than at the end of a project. Recently, I struggled with deploying the latest version of SonarQube on Azure App Service, so I created the repository mhdbouk/azure-sonarqube (github.com) to document my process and help others avoid the same pitfalls. In this blog post, I’ll share my experience with deploying SonarQube on Azure App Service and provide the repository for anyone who may find it useful. ...

December 22, 2022 · 4 min · Mohamad Dbouk
Azure Bicep

The Power of Bicep: Deploying on Azure in a Snap

If you’re looking for a simple and efficient way to deploy your application on Azure, you’re in the right place. In this blog post, I will guide you through the process of deploying an existing docker image on Azure using Bicep. It’s easier than you might think, and a lot more fun too! You can find all of the information discussed in this blog post in my GitHub repository, located at mhdbouk/libretranslate-bicep (github.com) ...

December 16, 2022 · 4 min · Mohamad Dbouk
You no longer need a Dockerfile

You no longer need a Dockerfile

The .Net 7 release is bringing a lot of changes, and one of the most significant is the removal of the need for a Dockerfile. Container images are now a supported output type of the .NET SDK. You no longer need a separate Dockerfile to containerize your .NET applications. You can publish your application and it will be built into a container image. This is a significant improvement for .NET developers who want to containerize their applications. It will make it much easier to distribute and run your applications in the cloud. In this article, we’ll take a look at what this change means for you and your applications. ...

December 4, 2022 · 5 min · Mohamad Dbouk
Azure CLI Icon

Update Azure SQL Server Firewall rules using Azure CLI

If you’re used to working with Azure SQL Server without a private endpoint or virtual network, you might be used to adding your public IP to the Azure SQL Server Firewall rules each time your public IP changes. Luckily, there’s an easy option: use the Azure CLI to update the network firewall rules with your new public IP. Get the Public IP using PowerShell Getting your public IP address is quick and easy with PowerShell. Just use the following command: ...

November 28, 2022 · 3 min · Mohamad Dbouk