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.
- 如果中间出现异常,可以一层一层的将异常向上抛, 抛到最顶层, 统一使用 try catch 进行拦截