This video will be available to
subscribers on Tue, Dec 16, 2025.
You must be a subscriber to view this video.
Dec 16, 2025
16m:27s

Introduction to Middleware

Classification
Software Engineering | Languages | JavaScript | Node
Keywords
javascript | node

About This Episode:

Your Node.js server just got superpowers πŸ’₯

We’re taking your app beyond the basics by introducing one of the most powerful architectural patterns in modern web development β€” middleware βš™οΈ

πŸ‘‰ In this episode, you’ll learn how to:

πŸš€ Implement your own middleware system from scratch in Node.js
πŸ”’ Add authentication checks with custom middleware classes
🧠 Use router groups to apply middleware cleanly and efficiently
πŸͺ„ Chain multiple middleware functions to handle complex logic
🧩 Understand how frameworks like Express build on this same concept

By the end, your Node.js app will have a clean, modular flow that scales effortlessly πŸ’ͺ

πŸ’‘ Relevant Links

Previous TekCasts series:
- JavaScript for Beginners: https://tekcasts.com/play/javascript-for-beginners-what-is-javascript
- JavaScript in the Browser: https://tekcasts.com/play/javascript-in-the-browser-browser-runtime-environment

Previous episodes in this series:
- Sessions: https://tekcasts.com/play/javascript-on-the-server-sessions
- Validation Improvements: https://tekcasts.com/play/javascript-on-the-server-validation-improvements
- Flash Messages: https://tekcasts.com/play/javascript-on-the-server-flash-messages
- Authentication Basics: https://tekcasts.com/play/javascript-on-the-server-authentication-basics

Libraries / Docs mentioned:
- Node.js http: https://nodejs.org/api/http.html
- Node.js URL: https://nodejs.org/api/url.html
Bob Cravens

Bob Cravens

Your Instructor
more »
Owner
TekFoundry
Wisconsin
United States
Short Bio:
Bob Cravens is a seasoned technology leader, software architect, and educator with a passion for empowering others through practical, real-world knowledge. As the founder of TekFoundry, Bob has dedicated his career to designing and delivering innovative software solutions that combine cutting-edge technology with elegant simplicity.

At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.

Bob’s expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, he’s passionate about helping others turn complex challenges into streamlined solutions.

When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.