coremedia-headless-client-react

CoreMedia Headless Stitching Server Documentation

Documentation / Installation (Stitching Server)


Installation and Start (Stitching Server)

The following commands should all be called in the stitching directory.

cd servers/stitching

Installation

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

Usage

pnpm start

Building the Docker Container

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