Instantly share code, notes, and snippets.

Embed
What would you like to do?
new koa server
const Koa = require('koa');
const app = new Koa();
app.listen(9000);
app.on('error', err => {
log.error('server error', err)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment