Functional Design Patterns for Express.js: A step-by-step guide to building elegant, maintainable Node.js backends
Language: English
Published by Independently published, 2019
- Softcover
- Used

Seller: World of Books (was SecondSale), Montgomery, IL, U.S.A.World of Books (was SecondSale)
AbeBooks seller since December 20, 2007
Condition: Used - Very good
US$ 3.50
Quantity: 1 available
Add to basketItem description from seller
Seller Inventory # 00082654586
- Title
- Functional Design Patterns for Express.js: A step-by-step guide to building elegant, maintainable Node.js backends
- Author
- Martin, Jonathan Lee
- Publisher
- Independently published
- Publication year
- 2019
- Condition
- Very Good
- Binding
- Soft cover
- Language
- English
- ISBN 10
- 1074005309
- ISBN 13
- 9781074005306
Learn the design patterns that transcend Express.js and recur throughout high-quality production codebases, with a step-by-step approach that teaches by doing.
Wonderfully entertaining and illuminating. Guaranteed to induce frequent “ah-ha!” moments. Easily one of the best treatments of backend programming with Node.js.
— Chris Aquino, author of Front-End Web Development: The Big Nerd Ranch Guide
Express is arguably the ubiquitous library for building Node backends. As of mid-2019, it is a dependency of 3.75 million codebases on Github alone. So if you hop into a Node codebase, chances are Express is part of it.
Good design in an Express.js backend is good design anywhere. The patterns you learn to develop Node backends will outlive Express and influence your design approaches in unrelated platforms.
- Learn Express.js by building a pure backend with authentication from scratch.
- Apply best practices to architect resilient, testable Node.js backends.
- Discover functional design patterns that transfer to any tech stack.
Who Is This Book For?
Searching for an Express.js primer that isn’t another screencast or exhaustive reference guide? Whether you’re a seasoned backend developer, frontend developer or recent web bootcamp graduate, this is the guide for you.
- Learn the intuitions of developing elegant, maintainable backends without the distractions of every tangential tool in the ecosystem.
- Solidly grasp the motivation behind each concept as you build step-by-step.
- Expand your design palate with patterns that will transfer to other platforms.
What You Will Learn
This book focuses on best practice, conventional backend design for pure backend APIs. As we build a full-featured backend together, expect to:
- Demystify HTTP: the web’s core abstraction
- Use telnet and Insomnia to test backend features
- Refactor a vanilla Node.js http.Server into an Express app
- Apply the Router design pattern to tease apart growing functions
- Drop in Express’s Router factory with zero changes
- Leverage JavaScript’s Function Objects to seamlessly upgrade middleware
- Work with streaming, JSON and multipart request bodies
- Build custom, decoupled middleware that’s trivial to reuse
- Extract complex branch logic into dedicated middleware
- When to use global, route or router middleware to prevent coupling
- Handle exceptions with error handling middleware
- Community middleware for static servers, file uploads, logging, body parsing, MIME types and more
- Design perspectives on authentication vs. authorization
- Build conventional authentication endpoints
- Write loosely coupled username/password authentication middleware
- Authenticate with JSON Web Tokens that coexists with other auth strategies
- Create graceful global middleware
- Currying, partially applied functions and other Functional Programming patterns
- Customize middleware with Middleware Factories
- Design patterns for elegant authorization logic
- Split authorization into Policies and Enforcers
- Guard routes with custom exceptions
What Do I Need to Know?
You should have a strong hands-on foundation in JavaScript and Node.js, including:
- Callbacks, async functions and Promises.
- ES2015, especially destructuring syntax and arrow functions.
You don’t need prior backend experience. If you understand how servers and clients interact, experience from either side of the equation is sufficient.
"Synopsis" may belong to another edition of this title.
About the Author
While waiting for npm install to finish, he treks around the world as a fine art landscape photographer.
"About the title" may belong to another edition of this title.
World of Books (was SecondSale)
Montgomery, IL, U.S.A.
AbeBooks seller since December 20, 2007
Shipping rates within U.S.A.
| Item | 4 to 12 business days | 3 to 6 business days |
|---|---|---|
| First item | US$ 0.00 | US$ 10.95 |
Payment methods
Store description
Seller's business information
SBYB, Inc.
900 Knell Rd
Montgomery, IL U.S.A. 60538
Terms of sale
We guarantee the condition of every book as it's described on the Abebooks web sites. If you're dissatisfied with your purchase (Incorrect Book/Not as Described/Damaged) or if the order hasn't arrived, you're eligible for a refund within 30 days of the estimated delivery date. If you've changed your mind about a book that you've ordered, please use the Ask bookseller a question link to contact us and we'll respond within 2 business days.
Shipping terms
Shipping costs are based on books weighing 2.2 LB, or 1 KG. If your book order is heavy or oversized, we may contact you to let you know extra shipping is required.