coremedia-headless-client-react

CoreMedia Headless Client Documentation

Documentation / Concepts / Workspace Structure


Workspace Structure

The workspace contains four main folders.

headless-client-workspace/
├── apps/
├── servers/
├── docs/
└── packages/
    ├── preview-*/
    └── view-dispatcher/

apps/spark

This folder includes the Spark app based on React and Apollo.

app/
├── bin/
├── build/
├── docs/
├── nginx/
├── public/
└── src/
    ├── __downloaded__/
    ├── __generated__/
    ├── components/
    ├── context/
    ├── models/
    ├── pages/
    ├── queries/
    └── utils

The source code is separated into different folder based on the functionality of the code.

apps/standalone-fragment

This folder includes the standalone fragment application. This can be used to integrate content from CoreMedia as a Javascript snippet into another website. For example via Google Tag Manager.

docs

This folder includes the documentation for this workspace.

packages

This folder includes the libraries as packages, which can be used in the app.

servers

This folder includes the stitching and the commerce-mocking servers.