@jimengio/fe-api-proxy
v0.2.24
Published
![](https://img.shields.io/npm/v/@jimengio/fe-api-proxy.svg)
Downloads
51
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.