Learning Koa

Learning Koa

50mBeginner2019-01-14

Authors

Emmanuel Henri

Emmanuel Henri

Executive with 20+ years of experience in programming and design

Course details

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.
Learning objectives

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

Skills covered

KoaNode.jsAPIsLearningOpen SourceSoftware Development

Concepts

Introduction

  • Work with Koa in your web applications and APIs
  • What you should know

Overview of Koa

  • What is Koa
  • Compare Express vs. Koa
  • Node.js server setup

Basic Koa Server

  • Install and set up Koa
  • Listen and use syntax

Overview of Context

  • What is the context
  • Basic context syntax
  • Request with context
  • Response with context
  • Throw errors with context

Using Async with Koa

  • What is async
  • Setup for async use
  • Examples of async

Cascading Middleware

  • What is middleware
  • Example of cascading
  • Finalize cascading example

Conclusion

  • Next steps
40,000 Toman