fis-mock-server
fis-mock-server
Last updated 2 years ago by mrluobo .
ISC · Repository · Bugs · Original npm · Tarball
$ cnpm install fis-mock-server 
SYNC missed versions from official npm registry.

fis-mock-server

fis-mock-server NPM version Dependency Status

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 (602003869@.com)

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |