React, Vue and Typescript

Modern frontend development with React, Next.js, and TypeScript

Programming Languages

JavaScriptTypeScript

Frameworks

ReactNext.jsVue.jsNestJS

Articles

Why Custom Components Trump CSS Classes in Modern Web Development

Explore the benefits of using custom components over traditional CSS classes and stylesheets in Vue and React. Understand how encapsulation, state management, and type safety enhance your web development process.

Enabling CORS in NestJS for Production: A Secure and Practical Guide

Deploying a NestJS API to production often triggers CORS errors—like “No ‘Access-Control-Allow-Origin’ header is present”—when your frontend or third-party clients live on a different domain. Using app.enableCors() with a secure configuration—restricting origins via an environment-driven whitelist, specifying allowed methods, and enabling credentials only when needed—ensures your API remains both accessible and protected.

May 21, 2025

Building Type-Safe Nuxt 3 Apps: Combining Composables, Pinia, and TypeScript for Scalable Authentication

Learn how to build a type-safe authentication system in Nuxt 3 using composables and Pinia, with TypeScript ensuring robust, scalable code. This tutorial walks you through creating a reusable useAuth composable that’s SSR-friendly and easy to integrate.

May 20, 2025

Solving the 'Cannot Use Import Statement Outside a Module' Error in NestJS with TypeORM

Solving the 'Cannot Use Import Statement Outside a Module' Error in NestJS with TypeORM

May 19, 2025

How to Inject a NestJS Service from Another Module: A Step-by-Step Guide

Struggling to inject a service from another module in your NestJS app? This guide simplifies the process, solving errors like Nest can't resolve dependencies. Learn how to export a service (e.g., UsersService), import its module into another (like AuthModule), and inject it seamlessly for modular, scalable applications. Follow clear steps and avoid pitfalls like missing exports or circular dependencies to keep your project running smoothly.

May 18, 2025

NestJS Interceptors vs. Middleware vs. Exception Filters: What’s the Difference and How They Work Together

Learn the key differences between Middleware, Interceptors, and Exception Filters in NestJS. This guide breaks down how each works, when to use them, and how they can be combined to build clean, maintainable APIs.

May 6, 2025

Using Environment Variables in NestJS AppModule for Database Connections: A Complete Guide

Learn how to securely manage PostgreSQL connections in your NestJS app by using environment variables with @nestjs/config. This guide walks you through setting up a .env file, dynamically injecting values into TypeOrmModule, and validating your config with joi—all while avoiding hardcoded credentials and ensuring a clean, scalable setup.

May 1, 2025

Why NestJS Uses DTOs and Interfaces: Unlocking Their Power with class-transformer

NestJS uses interfaces for type safety and DTOs for runtime validation and transformation. While interfaces vanish at compile time, DTOs—enhanced by class-transformer—ensure clean, secure API data handling. Used together, they create robust and maintainable code.

April 16, 2025

Decoding Magento DI: A Beekeeper's Guide to Virtual Types and Types

Discover the similarities between beekeeping and Magento's Dependency Injection system as we delve into virtual types and types, serving as an allegory to illustrate the complexities of Magento's DI in a beekeeping e-commerce scenario.

September 12, 2024

Managing Large Datasets in Nuxt/Vue 3: Composables, Pinia Stores, and Efficient Data Loading

Learn when to use composables and Pinia stores in Nuxt/Vue 3 and how to manage large datasets with strategies like pagination, infinite scrolling, and time-based filtering.

April 9, 2024

Resolving Dependency Issues in TypeORM

Learn how to handle "No metadata found" errors in TypeORM, focusing on resolving dependency issues when entities are specified explicitly.

March 7, 2024

Enhancing MUI Theming with TypeScript: Custom Variants and Styles

Elevate your MUI theme customization with TypeScript. Learn to create type-safe custom component variants and themes with predefined styles, complete with TypeScript adjustments for rigorous type-checking and IntelliSense support.

February 29, 2024

Exploring MUI's Type System: A Developer's Guide with Code Examples

Dive deep into the MUI type system with this developer-centric guide. Understand how to effectively utilize `StandardProps`, `React.HTMLAttributes`, `SxProps`, `ContainerClasses`, and `ComposedStyleFunction` with practical code examples, particularly focusing on the Typography component in MUI.

February 28, 2024

Create a React Application with Webpack

This short article gives an introduction, how you can build a react application with the use of webpack, the transpiler babel and the the typesystem flow. You will see, how to configure webpack, run development and production builds and how you develope with flowjs.

February 13, 2024