Latest Updates

Documenting code, one commit at a time.

Refactoring for Scalability: From Single Route to Robust Mailing Service

Imagine deploying a new feature, only to find your application struggling under the load. That's what happened when we integrated a new mailing service into our FNSM portal backend.

This is the story of how we refactored a seemingly simple feature to handle increased load and ensure maintainability.

The Initial Implementation

Our initial approach was straightforward: when a business

Read more

Centralized Routing Configuration in a Portal Backend

The FNSM-2026-PORTAL/FNSM-Portal-Backend project is undergoing changes to centralize and streamline routing configurations. This enhancement aims to improve maintainability and scalability of the application by consolidating route definitions.

The Problem: Scattered Route Definitions

Previously, route definitions might have been spread across different modules or files, making it difficult

Read more

Streamlining Business Logic with DTOs and Zod Validation in Our Portal Backend

Introduction

We've been working on the backend for our FNSM Portal, focusing on solidifying the business logic layer. A key part of this has involved defining robust Data Transfer Objects (DTOs) and implementing validation using Zod. This ensures data consistency and reduces errors throughout the application.

Business Model and DTOs

Our approach begins with a well-defined business model

Read more