Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@jimengio/fe-api-proxy

0.2.24 • Public • Published

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.

Keywords

none

Install

npm i @jimengio/fe-api-proxy

DownloadsWeekly Downloads

43

Version

0.2.24

License

MIT

Unpacked Size

6.34 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar