add hello-world example

This commit is contained in:
TJ Holowaychuk 2013-11-10 16:09:27 -07:00
parent 9ee6ada2d5
commit 3e56d82184

9
examples/hello-world.js Normal file
View file

@ -0,0 +1,9 @@
var koa = require('..');
var app = koa();
app.use(function *(){
this.body = 'Hello World';
});
app.listen(3000);