Skip to content

A simple version of Koa for study purposešŸ¦

Notifications You must be signed in to change notification settings

pearmini/toy-koa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Ā 

History

1 Commit
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 
Ā 

Repository files navigation

Toy Koa

This a simple version of Koa. It is just for learning purpose which can't be used directly in a production environment.

Get Started

const ToyKoa = require('./toy-koa/app.js');
const app = new ToyKoa();

app.use(ctx => {
    ctx.body = 'Hello ToyKoa';
})

app.listen(3000);

API

  • new ToyKoa()
  • app.use(callback: (ctx, next) => {})
  • app.listen(port, address, callback)

About

A simple version of Koa for study purposešŸ¦

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published