Koa framework (a next-generation web development framework based on the node.js platform)

One, cheap koa

Execute the following command after installing node.js

Install koa globally

cnpm  install  koa-generator  -g

The koa2 -h command lists the help files of the koa command

 Second, create a koa project

koa2 peojectname

The generated project directory:

 Execute npm start and visit localhost:3000 

Guess you like

Origin blog.csdn.net/qq_31905135/article/details/107694316