Skip to main content

Strapi CMS

This integration provides a full integration with Strapi CMS, enabling comprehensive content management capabilities for your application. The integration supports content management, page management, and content localization, allowing you to create and manage multilingual content with ease.

In this section

  • How to set up - Step-by-step guide for setting up the Strapi CMS integration
  • Features - Overview of features supported by the Strapi CMS integration
  • Supported blocks - Implementation status of all blocks available in the O2S framework
  • Content model - Structure and organization of the Strapi content model
  • GraphQL integration - Detailed information about GraphQL integration, code generation, and query structure

Installation

First, install the Strapi integration package:

npm install @o2s/integrations.strapi-cms --workspace=@o2s/api

Environment variables

Configure the following environment variables in your API Harmonization server:

nametypedescription
CMS_STRAPI_BASE_URLstringthe base URL pointing to the domain hosting Strapi CMS

You can obtain this value from your Strapi instance settings - it should be the URL where your Strapi server is running (e.g., http://localhost:1337 for local development).

Content model import

To start, go to our resource repository where you can find the instructions on how to import the content model into your own Strapi instance:

Code generation

After setting up your Strapi instance and configuring the environment variables, you need to generate TypeScript types from your GraphQL schema. Run:

npm run generate

For more details about code generation and GraphQL integration, see the GraphQL integration documentation.