Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 679 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 679 Bytes

mock-server

配置

1、config.default.js中 record设置为true,即代表不使用mock中的数据,仅仅转发请求并记录下来。 2、后缀不匹配的接口,仅仅做转发,不做任何记录。

QuickStart

see egg docs for more detail.

Development

$ npm i
$ npm run dev
$ open http://localhost:7001/

Deploy

$ 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.