Prerequisite nodejs has been installed
Install Taobao mirror
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm i koa
npm install -g koa-generator
Use koa2 to create a test project
koa2 test -e
Directory Structure
npm install
npm start