@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.

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @jimengio/fe-api-proxy

    Weekly Downloads

    0

    Version

    0.2.24

    License

    MIT

    Unpacked Size

    6.34 kB

    Total Files

    7

    Last publish

    Collaborators

    • imzshh
    • jiyinyiyong
    • rebirth