Articles & Blog Posts

Oct 2025
8 min read

Building SaaS applications often requires multi-tenant architecture where each client has their own isolated database. This article explores the challenge of cross-database population in NestJS with Mongoose and provides a clean solution for safely populating references across different tenant databases.

Key Topics Covered:

  • Set up a multi-tenant connection service for dynamic database switching
  • Create tenant-specific models with proper isolation
  • Implement cross-database population without compromising security
  • Handle connection pooling and performance optimization
  • Gracefully manage database connections lifecycle
NestJSMongoDBMongooseMulti-TenancySaaSTypeScriptDatabase ArchitectureBackend Development
2025
6 min read

A comprehensive guide to self-hosting Plane, an open-source project management tool similar to Linear or Jira. Learn how to set up a production-ready Plane instance using Docker Compose with proper configuration, environment variables, and best practices for deployment.

Key Topics Covered:

  • Set up Plane project management software with Docker Compose
  • Configure environment variables and database connections
  • Implement proper networking and service orchestration
  • Handle storage and Redis configuration
  • Deploy a reproducible and maintainable self-hosted solution
DockerDocker ComposeSelf-HostingPlaneProject ManagementDevOpsInfrastructureDeployment
2025
7 min read

Build a robust and scalable file storage solution using NestJS and MinIO, an S3-compatible object storage system. This guide covers implementing a clean service architecture for file uploads, downloads, and deletions with proper error handling and security practices.

Key Topics Covered:

  • Integrate MinIO client with NestJS dependency injection
  • Implement secure file upload with validation and error handling
  • Create file download service with presigned URLs
  • Handle file deletion and bucket management
  • Set up production-ready configuration and best practices
NestJSMinIOFile UploadObject StorageS3TypeScriptBackend DevelopmentCloud Storage