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
£ 2.67
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.
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 | £ 0.00 | £ 8.09 |
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.
Right of withdrawal
If you are a consumer you can withdraw from the contract in accordance with the following. Consumer means any natural person who is acting for purposes which are outside his trade, business, craft or profession.
Information regarding the right of withdrawal
Statutory right to withdraw
You have the right to withdraw from this contract within 14 days without giving any reason.
The withdrawal period will expire after 14 days from the day on which you acquire, or a third party other than the carrier and indicated by you acquires, physical possession of the last good or the last lot or piece.
To exercise the right of withdrawal, electronically fill in and submit a clear statement on our website, under "My Purchases" in "My Account". We will communicate to you an acknowledgement of receipt of such a withdrawal on a durable medium (e.g. by e-mail) without delay.
To meet the withdrawal deadline, it is sufficient for you to send your communication concerning your exercise of the right of withdrawal before the withdrawal period has expired.
Effects of withdrawal
If you withdraw from this contract, we will reimburse to you all payments received from you, including the costs of delivery (except for the supplementary costs arising if you chose a type of delivery other than the least expensive type of standard delivery offered by us).
We may make a deduction from the reimbursement for loss in value of any goods supplied, if the loss is the result of unnecessary handling by you.
We will make the reimbursement without undue delay, and not later than 14 days after the day on which we are informed about your decision to withdraw from this contract.
We will make the reimbursement using the same means of payment as you used for the initial transaction, unless you have expressly agreed otherwise; in any event, you will not incur any fees as a result of such reimbursement.
We may withhold reimbursement until we have received the goods back, or you have supplied evidence of having sent back the goods, whichever is the earliest.
You shall send back the goods or hand them over to World of Books (was SecondSale), Montgomery, Illinois, U.S.A., without undue delay and in any event not later than 14 days from the day on which you communicate your withdrawal from this contract to us. The deadline is met if you send back the goods before the period of 14 days has expired. You will have to bear the direct cost of returning the goods. You are only liable for any diminished value of the goods resulting from the handling other than what is necessary to establish the nature, characteristics and functioning of the goods.
Exceptions to the right of withdrawal
The right of withdrawal does not apply to:
- The delivery of newspapers, journals or magazines with the exception of subscription contracts; and
- The supply of digital content which is not supplied on a tangible medium (e.g. on a CD or DVD) if you accepted when you placed your order that we could start to deliver it, and that you could not withdraw once delivery had started.
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.