An express server that relies on mockjs to simulate the CLI of interface data
npm install mockjs-server-cliYou can add mock.config.js to the project root directory
project-root
+ |- mock.config.js
Running commands
mockjs-serverYou can also place mock.config.js somewhere else, or change it to another name.
project-root
+ |- /config
+ |- mock.config.js
Running commands
mockjs-server --port=8888 --config=config/mock.config.js-p, --port(default:8888) - server port--config(default:${cwd}/mock.config.js) - path to the mock config file--delay- simulate http delay