Skip to content

a simple version of koa which implements most of its basic mechanisms

Notifications You must be signed in to change notification settings

mly-zju/simpleKoa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

一个轻量版的仿koa框架

框架源码目录:src/

如何运行demo

由于使用async/await,因此node版本需要高于7.6 。也可以安装babel-cli,使用其中的babel-node运行。

  • 中间件demo:node examples/middlewareDemo.js
  • 错误处理demo: node examples/extendDemo.js
  • ctx扩展demo: node examples/extendDemo.js

从头实现一个koa框架,原理讲解:

从头实现一个koa框架

About

a simple version of koa which implements most of its basic mechanisms

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published