@jimengio/fe-api-proxy

![](https://img.shields.io/npm/v/@jimengio/fe-api-proxy.svg)

Stats

StarsIssuesVersionUpdatedCreatedSize
@jimengio/fe-api-proxy
0.2.24a year ago3 years agoMinified + gzip package size for @jimengio/fe-api-proxy in KB

Readme

API proxy tool

Usage

npm install -g @jimengio/fe-api-proxy

# default
fi-proxy

# with local port
L_PORT=8116 fi-proxy

Features:

  • starts a server listening 8000
  • redirects sites and apis
  • adds CORS headers for apis

Occupied ports:

  • /fi 8888
  • /config 8080
  • /account 9999
  • /system 7777
  • /mobile 8010
  • /api-playground 8020
  • /signin 8030
  • /setup 8030, 共用项目和端口
  • /mobile-ipc 8040, Shopfloor App
  • /admin 8899

User config file

Use ./jimeng-proxy.js to add local configs:

module.exports = {
  playground: 8020,
};

CLI tool would try to require(...) the file and merge into sites configurations.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.