How does node+koa write the entry file, app.js??

beginners node and koa do not know how to configure the portal file. I would like to give you some advice

Mar.20,2021

The purpose of

entry is to create a listening service. The easiest way to start


1,

const Koa = require('koa');
const app = new Koa();
app.use(async(ctx)=>{
ctx.body = 'hello';
});
Menu