- view 视图 模板 页面的展示
- controller 控制器 负责一些业务逻辑的处理
- model 模型 和数据打交道(查询数据库 请求数据)
yarn global add egg-init
egg-init pro --type=simple
see egg docs for more detail.
$ npm i
$ npm run dev
$ open http://localhost:7001/
$ npm start
$ npm stop
- Use
npm run lint
to check code style. - Use
npm test
to run unit test. - Use
npm run autod
to auto detect dependencies upgrade, see autod for more detail.