egg-demo 搭建
实现功能
- 数据连接封装
- service 类封装
- 路由封装
- 前后端交互 ejs模板实现
订单业务实现
QuickStart
see egg docs for more detail.
Development
1 | $ npm i |
Deploy
1 | $ npm start |
npm scripts
- 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.