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
- New

Seller: Revaluation Books, Exeter, United KingdomRevaluation Books
AbeBooks seller since January 6, 2003
Condition: New
£ 50.67
Quantity: 1 available
Add to basketItem description from seller
Seller Inventory # zk1074005309
- 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
- Brand New
- Binding
- Paperback
- 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.
Revaluation Books
Exeter, United Kingdom
AbeBooks seller since January 6, 2003
Shipping rates from United Kingdom to U.S.A.
| Item | 7 to 14 business days | 2 to 3 business days |
|---|---|---|
| First item | £ 12.50 | £ 25.00 |
Payment methods
Seller's business information
Edward Bowditch Ltd
Exstowe, Exton
Exeter, United Kingdom EX3 0PP
Terms of sale
Legal entity name: Edward Bowditch Ltd
Legal entity form: Limited company
Business correspondence address: Exstowe, Exton, Exeter, EX3 0PP
Company registration number: 04916632
VAT registration: GB834241546
Authorised representative: Mr. E. Bowditch
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 Revaluation Books, Hounslow, United Kingdom, 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
Orders usually dispatched within two working days.