fis-mock-server
v1.0.8
Published
fis-mock-server
Downloads
10
Readme
fis-mock-server
fis-mock-server
a rewrite server build with koa and pm2
Installation
Run npm install fis-mock-server -g
Usage
start
Run fis-mock-server start
add a server-conf.js
file in your project
eg:
module.exports = {
hostname: 'www.baidu.com', // request that sent to localhost will be rewrited to hostname you config here
port: 8888 // defult null
}
add
fis.match('server-conf.js',{
useHash:false,
release:'/$0',
isMod:false
})
into fis-conf.js
then release files in ~/.mock/
use fis3
fis3 release -d ~/.mock/
stop
Run fis-mock-server stop
kill
Run fis-mock-server kill
License
MIT © 2015 mrluobo ([email protected])