Learning Koa

Learning Koa

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 0h 50m | 118 MB

Get started with Koa, a popular middleware framework for Node.js that was designed by the team behind Express. In this course, Emmanuel Henri helps you get up and running with this popular web framework, detailing how to work with Koa in your web apps and APIs. After providing a basic overview of Koa—as well as how it differs from Express—he discusses how to work with Context, which encapsulates the Node request and response objects into one object. He then goes over how to use async with Koa and how cascading middleware relates to your back-end environment, as well as how cascading middleware can be applied to async calls in a Koa environment.

Topics include:

  • What’s Koa?
  • Similarities and differences between Koa and Express
  • What’s a Koa Context?
  • Throwing errors with Context
  • Using async with Koa
  • Cascading middleware
Table of Contents

Introduction
1 Work with Koa in your web applications and APIs
2 What you should know

Overview of Koa
3 What is Koa
4 Compare Express vs. Koa
5 Node.js server setup

Basic Koa Server
6 Install and set up Koa
7 Listen and use syntax

Overview of Context
8 What is the context
9 Basic context syntax
10 Request with context
11 Response with context
12 Throw errors with context

Using Async with Koa
13 What is async
14 Setup for async use
15 Examples of async

Cascading Middleware
16 What is middleware
17 Example of cascading
18 Finalize cascading example

Conclusion
19 Next steps