Menu
Richardson Maturity Model in REST API

Richardson Maturity Model in REST API

The Richardson Maturity Model is a model developed by Leonard Richardson in 2008 to categorize and rank the architectural maturity of web APIs based on their adherence to REST (Representational State Transfer) principles. REST is a style of software architecture for distributed systems, often used in web services development.

C# – Convert HTML to PDF using pdf.co API

C# – Convert HTML to PDF using pdf.co API

Let’s see how we can use pdf.co API to convert the same HTML using C# (.net)

PHP convert HTML to PDF

PHP convert HTML to PDF

Creating PDF reports, and receipts these days is a common thing. While back I implemented a PHP web service to generate PDF from a given HTML, you can pretty much use any fancy HTML and this PHP code converts that to a PDF document with all the css/html styling intact.

C# – Solid principles with C# examples

C# – Solid principles with C# examples

Solid principles are a set of design principles that help developers create maintainable, scalable, and flexible software. Regardless of the programming language you use, SOLID will help you write more liner, maintainable, extendable code.

C# – Using Tesseract to extract identity details from a photo (Passport, Driving License, etc.)

C# – Using Tesseract to extract identity details from a photo (Passport, Driving License, etc.)

Lets see how we can use Tesseract to extract information from a scanned image or photo of an ID document.

C# Unit test a Repository class using a Seeded InMemoryDatabase

C# Unit test a Repository class using a Seeded InMemoryDatabase

If you wanted to unit test a Repository that uses a DbContext with seeded data, you can use the InMemoryDatabase.

C# querying the EWS Managed API from as asp.net core web api

C# querying the EWS Managed API from as asp.net core web api

Let see how we can integrate the Microsoft Exchange (AKA EWS) and access the information.

C# running parallel asynchronous tasks with limited number of concurrent tasks (MaxDegreeOfParallelism)

C# running parallel asynchronous tasks with limited number of concurrent tasks (MaxDegreeOfParallelism)

I have recently started integration a web api service, there are more than 2000+ records to get and my input is different. 

Unit testing Basic Authentication Handler in asp.net core (C# )

Unit testing Basic Authentication Handler in asp.net core (C# )

Unit testing Basic Authentication Handler in asp.net core (C# ), I will be using the Xunit (my preferred) and Moq, I personally prefer NSubstitute, but the project was already using Moq and I didn’t want to change it.

Using OData paginated payload with ngx-bootstrap Pagination component

Using OData paginated payload with ngx-bootstrap Pagination component

All the OData endpoints have stranded responses, I don’t want to change it. Now I need to do my Angular implementation to support OData stranded.

Using MediatR with Hangfire to pass requests that can be processed in the background jobs

Using MediatR with Hangfire to pass requests that can be processed in the background jobs

I need to move this email sending task out of the HTTP process and run it in the background. Hangfire is a very good solution for all the background tasks.

Using OData to fast track your API development

Using OData to fast track your API development

I have been having a lot of interest in OData for a few years, but never had the opportunity to actually start implementing it. Since I can’t see an interesting project on the horizon, I thought I will start playing around with one of the sample databases, Adventure Work.

Making Angular reactive forms easier (or better) with @rxweb/reactive-form-validators

Making Angular reactive forms easier (or better) with @rxweb/reactive-form-validators

Making Angular reactive forms easier (or better) with @rxweb/reactive-form-validators

Creating a Model for an Existing Adventure Works Database in Entity Framework Core

Creating a Model for an Existing Adventure Works Database in Entity Framework Core

Recently I started playing around with Odata and wanted to fast track development with an existing database. I don’t want to waste time on data and the database structure, rather I spend time on asp.net core oData.

Posting messages to Microsoft Teams from your C#/ ASP NET Core application

Posting messages to Microsoft Teams from your C#/ ASP NET Core application

Sending emails is bit old and most check emails few times a day. One of the interesting ways of integration is Micrisoft Teams or Slack. These tools are popular among startups as well as enterprise clients.

ASP.NET Core C# API – Register a service dependency that uses HttpClient correctly

ASP.NET Core C# API – Register a service dependency that uses HttpClient correctly

More often we have to call a RESTfull service, it could be simple as sending an email, SMS, posting a message, etc. We use can use an HttpClient for all our HTTP calls. Alternatively, we can use a library such as Restshaper.

C# – Unit testing a AutoMapper Profile mappings

C# – Unit testing a AutoMapper Profile mappings

When you use AutoMapper to map our objects, and AutoMapper profiles are the way we do it, it encapsulates a lot of business logic in some cases. But we need to make sure the business logic gets unit tested.

C# – Unit testing a Mediator handler that has AutoMapper Profile

C# – Unit testing a Mediator handler that has AutoMapper Profile

As part of my Mediator handler, I have multiple dependencies injected they are DbContext, IMapper. But remember, as part of the application initialisation we have AutoMapper Profile registration automatically. But it’s not the case with Unit Testing we need to register the dependencies or mock them. Therefore we need to add the Profile to our IMapper initialisation.

Azure DevOps – Calling REST endpoint via Powershell script

Azure DevOps – Calling REST endpoint via Powershell script

As part of the CI/CD, I had run the migrations I created with TypeORM (NodeJs), I have selected the path of creating a function that runs the script. Endpoint needs to be called once the app deployment is completed. Add a Powershell script with First, you need to run, so you will not get certificate […]

Getting started with Terraform Azure – Provision & Manage any Infrastructure

Getting started with Terraform Azure – Provision & Manage any Infrastructure

Each organisation is different, some has dedicated teams to manage and provision resources. But if you were to manage them your self as a developer, either you login to Azure Portal and create necessary resources yourself or you CI/CD (Infrastructure as a code) do it as part of the release.

Angular Unit testing – spyOn – EventEmitter

Angular Unit testing – spyOn – EventEmitter

When it comes to unit testing you will have to isolate your component and test that component without thinking about any of the dependencies, this is where you will have to use Mocks, it can be a Mocked service, Route, etc.

Angular Unit testing – Router navigate

Angular Unit testing – Router navigate

When it comes to unit testing you will have to isolate your component and test that component without thinking about any of the dependencies, this is where you will have to use Mocks, it can be a Mocked service, Route, etc.

Angular Unit testing – Mocking – ActivatedRoute

Angular Unit testing – Mocking – ActivatedRoute

When it comes to unit testing you will have to isolate your component and test that component without thinking about any of the dependencies, this is where you will have to use Mocks, it can be a Mocked service, Route, etc.

Azure Functions – Serve SPA assets using proxies.json that support Angular routes

Azure Functions – Serve SPA assets using proxies.json that support Angular routes

When you work with Azure Functions, you can use Azure table storage “Static website” to store all your Angular bundles and assets or even a CDN. Then you can set up your proxies.json to serve the files, everything is pretty much the basics.

Publishing your Angular Library to your organisation DevOps npm feed

Publishing your Angular Library to your organisation DevOps npm feed

Publishing your Angular Library to your organisation DevOps npm feed

Creating Azure resources through Azure DevOps (VSTS) CI/CD pipeline

Creating Azure resources through Azure DevOps (VSTS) CI/CD pipeline

Create resources automatically using CI/CD, including creating resources such as Storage,  Azure Functions, etc.

Publishing Angular unit test and code coverage results on Azure DevOps CI/CD pipe line

Publishing Angular unit test and code coverage results on Azure DevOps CI/CD pipe line

As most of us know writing unit test is one of the hot topics among developers, and we all try to write to our best abilities and time constraints. This is about how we can publish results to DevOps as part of your Angular build.

Creating a Progressive Web App (PWA) service to include all features Angular

Creating a Progressive Web App (PWA) service to include all features Angular

Progressive Web Apps is the future of web apps, it brings a lot of capabilities to make our life easier and making it a lot closer to a native mobile app. It is not a native app but it does give you the offline capabilities, installation, updates.

Creating a HTTP_INTERCEPTORS in Angular to catch any server 500 or unhanded errors

Creating a HTTP_INTERCEPTORS in Angular to catch any server 500 or unhanded errors

Normally I have a base service class for 5XXX server errors or unhandled exceptions, or even in a case where you have a 422 /400 where there is a validation error and you want to warn the end-user to double-check the form inputs.This is another way to globally handle error messages.

Create DatePicker input component from Vue Js

Create DatePicker input component from Vue Js

Each date picker component out there is created for a specific need and in some cases, you find some components are overwhelming, has unnecessary features (for you) or does not follow pest user experience (again as per your project)

OLDER POSTS