node egg 企业后台开发框架

egg-demo 搭建

实现功能

  • 数据连接封装
  • service 类封装
  • 路由封装
  • 前后端交互 ejs模板实现
  • 订单业务实现

  • github地址

QuickStart

see egg docs for more detail.

Development

1
2
3
$ npm i
$ npm run dev
$ open http://localhost:7001/

Deploy

1
2
$ npm start
$ npm stop

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.