0.0.5 • Published 7 years ago

bambooshoot v0.0.5

Weekly downloads
18
License
-
Repository
github
Last release
7 years ago

bambooshoot

What's bambooshoot?

an application used by FE to generate mockdata of server's interface response. It also can serve as a server to replace the response of serverside interface.

How to use it?

1 use npm install bambooshoot.

  npm install bambooshoot [-g]

2 start the server and the default port is 3000 if you don't pass the option -p

  bamboo start

the browser will open the mock server site. eg:https://127.0.0.1:3000

3 current commands

You can use 'bamboo' to list the supported commands

  bamboo
  
  Usage: bamboo <command>
  
  Commands:
  
     start    start mock server,you can pass option '-p' to set the server port
   
   Options:
     
     -v, --version  output the version number
     
     -p, --port  set the server port

4 https://127.0.0.1:3000

1) use proxy like charles, fiddler to map the path you want to mock repsonse

2) the response data should be like {"test": "test"}, double-qoute is required