Moco is here
This demo demonstrate how to use moco to setup Mock server, and give 5 commonly used scenarios include:
- login
- Show list
- time out
- error page
- proxy.
Under linux/mac( Take login for example):
./moco start -p 3000 -c login.json
Under Windows, please download and use Moco standalone runner
java -jar moco-runner-<version>-standalone.jar -p 3000 -c login.json
IMPORTANT: Some times we need only one server to mock all api, moco provide globle settings to achieve this.
This demo alos demostrate this feature, please to to global-settings branch, and run:
./startMoco.sh
Add globe settings- more useful scenarios