my egg first study
see egg docs for more detail.
$ npm i
$ npm run dev
$ open http://localhost:7001/
$ npm start
$ npm stop
这里仅仅只作为KOA的学习
注意就是API文档的注意一定要规范;
另外每一个路由都要写测试用例;
- 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.