A Component of FluidFramewrok, as name as gateway, which clone from micro.
961
Gateway is an example host. It's a simple service that deploys a controller with a Fluid Framework loader and the necessary drivers to connect to Routerlicious.
Historically, Gateway was used internally to test the Fluid Framework.
Prior to running locally, the .env file needs to be created and filled out. Please see sample.env to find the fields to configure.
./server/ directory, run docker-compose up. You may see some errors here, such as MongoDB port is not found. This is fine, Gateway doesn't need these services../server/gateway directory, run docker-compose build.docker-compose -f docker-compose.server.yml up. After a stream of messages, the output should settle on:
info: Listening on port 3000NOTE: If you are using any gateway routers that use the ODSP driver, i.e. "spo-df", "spo", and "spo-shared", you will need the appropriate client IDs and secrets locally available in your .env file. Please add them in here and NOT in config.json. Config.json is a file that is pushed to git and we DO NOT want these secrets pushed with any changes. Please only set the client IDs and secrets in the .env file which has already been added to .gitignore.
In addition to the standard install/build, also:
# From FluidFramework/server/gateway
docker-compose build
docker-compose up --no-build
You use these two commands over just docker-compose up because just running up does not update the sources served through gateway.
# e.g. FluidFramework/docker-compose.yml
version: '3.4'
services:
gateway:
image: gateway_gateway # The name running in Docker
ports:
- "3005:3000" # Some other unused port
...
...
...
# e.g. from FluidFramework
npm start
When making additional changes, stop both gateway and the other entry point and rerun these steps.
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services. Use of these trademarks or logos must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Content type
Image
Digest
Size
321.3 MB
Last updated
almost 6 years ago
docker pull hzgood/gateway