1.1.1 • Published 9 years ago
naive-mock v1.1.1
naive-mock
A lightweight mock system with web configuration interface.

Usage
# install naive-mock
npm install --global naive-mockOptions
port- Specify port number you wantnaive-mockrun fordataDir- Specify where to put mock data, settings.json. For example:./datalogDir- Specify where to put error log. Useful when you have error usingnaive-mock, you can send error log to me. No log recorded by defaulthelp- Print help menu with the list of argumentsversion- Print what version it is
Give a try
mock --port 8080The mock system will be launched at port
8080. Visit it with: http://127.0.0.1:8080. Data & settings will be stored at${CWD}/data/.
Want play with source code?
#clone this repo
git clone https://github.com/leftstick/naive-mock.git
#install dependencies
npm install
#start portal at 3000 portal
npm startNow you can visit portal through: http://localhost:3000
