Skip to content

Latest commit

 

History

History

README.md

Integrations

NestJS integration packages used by the BFF (Backend for Frontend) to connect the storefront to e‑commerce and CMS back ends. The BFF selects which integration(s) to use per request via DataSourceFactory and the configured data source (e.g. commercetools-set, mock-set).

Overview

Package Role
commercetools-api Product catalog, cart, checkout, navigation, customer, and order services via Commercetools
commercetools-auth Customer auth (login, registration, password reset, sessions) via Commercetools
contentful-api CMS content: pages and layout (header/footer) via Contentful GraphQL API
contentful-migration Content model and demo content for Contentful (migrations / CMS-as-code)
mock-api Mock implementations of catalog, content, and navigation for local development and demos

How the BFF uses them

  • Data source commercetools-set: Catalog and navigation from Commercetools; pages/layout from Contentful (or mock if Contentful is disabled). Customer, address, and order from Commercetools; payment from mock.
  • Data source mock-set: Catalog, content, and navigation from the mock API; customer/order still from Commercetools; payment from mock.

All integration modules are imported in the BFF’s DataSourceModule. For routing details and a code example, see the BFF README – How it works.

Package READMEs

License

OSL-3.0 — see root LICENSE.