Skip to content
0:00 / 0:00

#express#async-await#promises

Async, Await, and Promises in Express for Node.js

Beyond Code Bootcamp

377 subscribers • 1 video on Hallway

YouTube

Intermediate. Assumes working knowledge.

6.4K views5 years ago1 recommendation

Web developmentProgramming languagesNode.js, Deno and BunConcurrency and parallelism

Learn how to handle asynchronous code, promises, and errors properly in Express using custom routers.

Here's how you can easily work with async/await and Promises in express, right now! @root/async-router: github.com/therootcompany/async-router Express 5.0 promised native support for async/await and Promises - and it even delivered, but then was never officially published. It's still stuck in alpha. There are many 3rd party modules that add promise support to express, but most of them are just plain terrible. Thankfully I express-promisify-router, which behaves exactly as any sane, rational person who has used express would expect it to behave. That said, since it doesn't seem to be actively maintained, I added the ability to use error handler functions and republished it as @root/async-router. Beyond Code: (Learn to Code in 15 Minutes a Day) Bootcamp Playlist: youtube.com/playlist?list=PLxki0D-ilnqZfyo2dZe11ZNGP7RJxJcoA Subscribe on YouTube: youtube.com/channel/UC2KJHARTj6KRpKzLU1sVxBA Join on Facebook: fb.com/beyondcodebootcamp Follow on Twitter: twitter.com/@_beyondcode AJ's Live Streams: Watch on Twitch: twitch.tv/coolaj86 Subscribe on YouTube: youtube.com/coolaj86 Watch on Facebook: fb.com/coolaj86 Health, Wealth, Commitment (My Morning Shower Thoughts as a Daily Lifestyle Vlog) Join on Facebook: facebook.com/groups/5406824179391158 Subscribe on YouTube: youtube.com/channel/UCbw2SbqD0OofAEVF_T61wCQ #softwaredevelopment #softwareengineer #webdevelopment #webdeveloper

Why it's here

1 person recommends this

What people say. Recommended as a clear guide to handling async/await and promises in Express without breaking error handling.

u/coolaj86in r/node • Recommends

The Missing Guide to Async/Await, Promises, and Error Handling in Express