English | 简体中文
gateWay
is the nodejs gateWay write withexpress
orkoa
. (pretend a simple gateway)static-a
is the business domain environment. (pretend static resources that have been deployed on the server.)static-b
is the local development environment. (pretend local static resources while debugging)
gateWay as an entry, it handles interface and static resource forwarding. (Forward resources in
static-a
)
-
cd in
gateWay、static
、static-a
、static-b
install and run separately -
Access gateWay
localhost:3000
, for user's access request, the static resource is forwarded directlylocalhost:3000
->localhost:9000
-
At this time, you can open a
static-a
page. -
Click
open
button in localmock plugin,the localdevServer/localhost:9001
can directly accessible in domainlocalhost:9000
-
Click
open
button in localmock plugin, inlocalhost:3000
you can access localdevServer
/localhost:9001
page.
Since then, the gateway debug mode has completed.