@arthur791004/proxy-server

Make life easier to develop micro services in local

Usage no npm install needed!

<script type="module">
  import arthur791004ProxyServer from 'https://cdn.skypack.dev/@arthur791004/proxy-server';
</script>

README

Proxy Server

Installation

# yarn
$ yarn global add @arthur791004/proxy-server

# npm
$ npm install --global @arthur791004/proxy-server

Usage

Provide a proxy.config.json at current working directory

{
  "port": "number",
  "proxy": {
    "<route>": "<http-proxy-options>"
  }
}

Options

  • port - the port which proxy listen on
  • proxy
    • key - route path
    • value: http proxy options and you could see documents at here