阿里egg学习

环境准备

  • 操作系统:支持 macOS,Linux,Windows
  • 运行环境:建议选择 LTS 版本,最低要求 6.x

快速初始化

通过脚手架快速生成项目:

 

$ npm i egg-init -g
$ egg-init egg-example --type=simple
$ cd egg-example
$ npm i

启动项目

$ npm run dev
$ open localhost:7001
北京的秋天,也冷
原文地址:https://www.cnblogs.com/lzxb/p/6889191.html