koa

 

一键生成koa/koa2项目:
1、 npm install -g koa-generator
2、新建项目目录 koa mytest (koa1项目) koa2 koa2test (koa2项目)
3、进入目录 cd koa2test
4、安装依赖 npm install
5、运行 npm start

 

如果你的node版本低于 < 7.6

 可参考:https://my.oschina.net/u/1416844/blog/660951

 

二:参考资料

  • https://cnodejs.org/topic/56936889c2289f51658f0926
  • https://wohugb.gitbooks.io/koajs/content/route/koa-router.html

  

posted @ 2017-07-06 15:47  SuLingLiu  阅读(207)  评论(0编辑  收藏  举报