Building a Scalable Multi-Tenant SaaS Architecture with Node.js and MongoDBRecently, I've been working on designing and implementing a robust multitenancy architecture for a SaaS project, specifically focusing on handling numerous tenants with strong isolation, scalability, and efficient resource management. Table of Conten...Jul 2, 2025路4 min read
How to Fix Puppeteer鈥檚 Browser Launch Issue in Docker Containers with Node-HTML-to-ImageWhen working with image generation in a Node.js application, one of the most popular libraries is node-html-to-image, which internally uses Puppeteer to convert HTML content into image formats like JPEG or PNG. While this library works well in most c...Sep 17, 2024路4 min read
Moving a Commit to a New Branch without Losing Progress! 馃捇馃敡Sometimes we realize after committing that the changes belong on a different branch. Instead of manually copying files, here's a clean, simple way to "move" your last commit to a new branch! 馃憞 1锔忊儯 Reset the Last Commit (Keep Changes Staged) git rese...Sep 6, 2024路1 min read
JavaScript Tip: || vs ?? for Default Values 馃殌When working with default values in JavaScript, choosing between the logical OR (||) and nullish coalescing (??) operators can significantly impact how your data is handled. Here鈥檚 a quick guide to help you choose the right one: 馃攧 Logical OR (||) B...Sep 4, 2024路2 min read
Separating鉀擄笍 Business Logic 馃from UI Components 馃敗Here is a small article highlighting the steps of separating business logic from UI in React, using the code you provided as an example: Steps to separate business logic from UI in React: Identify the business logic in your components. This includes...Oct 8, 2023路3 min read
Better Conditional Rendering in React with Many ConditionsConditional rendering is a powerful tool in React that allows you to render different content based on certain conditions. However, when you have many conditions to check, it can be easy to end up with a messy and difficult-to-maintain codebase.馃く Me...Oct 7, 2023路2 min read
Shallow Copies vs. Deep Copies in JavaScript: When to Use EachTable of contents Introduction Shallow copies Deep copies Spread syntax Deep copying objects JSON.stringify() and JSON.parse() structuredClone() Conclusion Introduction When copying objects in JavaScript, it is important to understand the...Oct 6, 2023路4 min read