Documentation / Installation (Stitching Server)
The following commands should all be called in the stitching directory.
cd servers/stitching
pnpm install
pnpm build
Copy of the file .env.example to .env and configure both endpoints. To establish the default mocking mode the CATALOG_ENDPOINT can be left commented out. In a “real” scenario you would configure the Commerce Headless GraphQL url instead.
COREMEDIA_ENDPOINT=https://<coremedia-headless-server>/graphql
#CATALOG_ENDPOINT=https://<commerce-headless-server>/graphql
pnpm start
docker build -t <REGISTRY_NAME>/schema-stitching-app .
docker run -p 12345:4000 -e COREMEDIA_ENDPOINT= -e CATALOG_ENDPOINT= -e <REGISTRY_NAME>/schema-stitching-app:latest