November 2018
Beginner
132 pages
2h 57m
English
As mentioned earlier, the application object exposes some methods to make development easier and make some tasks easier to do. In this section, we will discuss some of the methods available in the application method:
const Koa = require('koa'); const app = new Koa(); app.listen(3000);
The preceding code block is essentially the same as the following one:
const http = require('http');const Koa = require('koa');const app = new Koa();http.createServer(app.callback()).listen(3000);
One or more Koa applications can be mounted on the ...
Read now
Unlock full access