How to Integrate Better-Auth with NestJS + tRPC

Integrating authentication into a NestJS + tRPC project doesn’t have to be painful.

In this guide, we’ll walk through wiring up Better-Auth with nestjs-trpc so every API call can automatically resolve the current user from secure cookies.

Add SSL to Drizzle + NestJS for AWS RDS (Postgres)

Connecting to AWS RDS without SSL leaves your database traffic exposed.

This guide shows how to secure Drizzle ORM + NestJS with TLS covering Drizzle Kit setup, a production-ready DatabaseModule, and deployment tips for Docker and Kubernetes.

Goodbye Node.js? NestJS + Bun: The Future of Fast Backends

Experience blazing-fast performance by running your NestJS apps on Bun, with instant startup times, a lightning-quick package manager, and the ability to execute TypeScript directly without a separate build step.

See how Bun can streamline your workflow while delivering serious speed gains for your APIs.

Building a NestJS App with SWC: A Step-by-Step Guide

Supercharge your NestJS development by replacing tsc with SWC — a Rust-based TypeScript compiler that’s up to 20× faster and more memory-efficient.

This hands-on guide for experienced developers walks you through setting up a standalone NestJS app with SWC, complete with configuration tips, performance benchmarks, and Docker deployment strategies.

Build a Full-Stack Todo App with Turborepo, tRPC, Next.js, NestJS & React Native

Take your TypeScript skills to the next level by building a production-grade full-stack Todo app with modern tools:

- Turborepo for monorepo management and code sharing
- PNPM for blazing-fast dependency installs
- Next.js + tRPC for a type-safe web frontend
- NestJS for a robust backend
- Expo + React Native for a mobile experience
- End-to-end type safety across the entire stack

Express vs Fastify: A Performance Benchmark Comparison

In this detailed performance benchmark, we put Express and Fastify head-to-head in a real-world test using Autocannon. Our results showed Fastify handling over twice the number of requests per second and delivering significantly lower latency compared to Express.

Dive into the analysis to discover why Fastify consistently outperforms Express and understand when each framework might be the right choice for your Node.js applications.

Deploy NestJS on Railway with Postgres & Docker

In this video, I’ll walk you through how to deploy a NestJS application to Railway, fully containerized with Docker, and connected to a PostgreSQL database.

You’ll learn how to configure your Dockerfile, set up environment variables, and get your app live with just a few commands. Whether you’re building an API or a full-stack app, this setup will have you production-ready in no time.

Optimizing NestJS Performance with HTTP Keep-Alive

HTTP Keep-Alive is one of the easiest ways to boost performance in your NestJS apps. By reusing TCP connections for multiple requests, you can reduce latency, avoid port exhaustion, and handle higher throughput with less overhead.

In this post, we’ll explore how to enable and tune Keep-Alive in both NestJS servers and clients, including real-world best practices for high-performance APIs.

Full Stack Authentication in 20 Minutes With Clerk (Next.js + NestJS)

In this hands-on lecture, you'll master full-stack authentication using Clerk, seamlessly integrating Next.js on the frontend and NestJS on the backend in just 20 minutes.

You'll quickly understand how Clerk simplifies authentication flows—from signup to login—while enhancing security and user experience. By the end, you'll confidently build secure, scalable authentication for your full-stack applications without getting bogged down by complexity

When to use Microservices in Node.js

Microservices offer scalability and flexibility, but they also introduce significant complexity, making them a poor fit for many Node.js applications.

The key is not to default to microservices but to adopt them when the trade-offs justify the benefits.

Learn Full Stack Development

Courses & Lectures

Access all of my best-selling courses & exclusive member-only lectures to learn full-stack development and upgrade your skills. New content is added monthly.

Over 10000 Students

We’ve taught over 10000 paying students the best practices in full-stack development covering UI, Backend & DevOps technologies. You’re in good company!

Q&A Support

Join our community and get access to fast & friendly Q&A support from instructors & other students who are learning the same content.

Membership

Join over 10,000 other students and get access to all courses & lectures to learn full-stack development & take your skills to the next level.

Don’t Just Take My Word For It

See what my students have to say about their learning experience. Check out real reviews from those who’ve taken my courses and discover why they recommend it!

    10,000+ Students

    Sign up to receive updates on new content & exclusive offers

    We don’t spam! Cancel anytime.