### Install Example App Source: https://github.com/contentful/apps/blob/master/examples/function-appaction/INSTRUCTIONS.md Use this command to install the example app. Navigate to the created directory afterwards. ```bash npx create-contentful-app@latest --example function-appaction ``` ```bash cd ``` ```bash npm i ``` -------------------------------- ### Install the example app Source: https://github.com/contentful/apps/blob/master/examples/app-parameters/README.md Use this command to initialize the example project via the Contentful CLI. ```bash npx create-contentful-app@latest --example app-parameters ``` -------------------------------- ### Install Example App Source: https://github.com/contentful/apps/blob/master/examples/function-comment-bot/INSTRUCTIONS.md Use this command to install the function-comment-bot example. ```shell npx create-contentful-app@latest --example function-comment-bot ``` -------------------------------- ### Install Dependencies and Run Setup Source: https://github.com/contentful/apps/blob/master/examples/default-values-backend/README.md Install project dependencies and execute the setup script to register the app in Contentful. ```shell yarn yarn setup # or npm install npm run setup ``` -------------------------------- ### Install Example App Source: https://github.com/contentful/apps/blob/master/examples/function-appevent-filter/INSTRUCTIONS.md Use the Contentful CLI to scaffold a new project with the event filter function example. ```bash npx create-contentful-app@latest --example function-appevent-filter ``` -------------------------------- ### Local Development Setup: Frontend Source: https://github.com/contentful/apps/blob/master/apps/google-analytics-4/VALIDATION.md Navigate to the frontend directory and start the development server. ```bash cd /Users/zachary.yankiver/Documents/Marketplace\ Apps/apps/apps/google-analytics-4/frontend HOST=localhost npm start ``` -------------------------------- ### Initial Project Setup Source: https://github.com/contentful/apps/blob/master/CONTRIBUTING.md Clone the repository, install root dependencies, and bootstrap the project. Use 'SINCE=master' to ensure all necessary packages are linked. ```bash git clone https://github.com/contentful/apps.git cd apps npm ci SINCE=master npm run bootstrap ``` -------------------------------- ### Start the Backend Application Source: https://github.com/contentful/apps/blob/master/examples/default-values-backend/README.md Launch the backend server after completing the setup process. ```shell yarn start ``` -------------------------------- ### Install and Initialize Contentful App Source: https://github.com/contentful/apps/blob/master/apps/bedrock-content-generator/README.md Run these commands to install dependencies, create an app definition, and start the development server. ```bash npm i \ npm run create-app-definition \ npm start ``` -------------------------------- ### Local Development Setup: Backend Source: https://github.com/contentful/apps/blob/master/apps/google-analytics-4/VALIDATION.md Navigate to the lambda directory and start the backend services using Docker Compose. ```bash cd /Users/zachary.yankiver/Documents/Marketplace\ Apps/apps/apps/google-analytics-4/lambda docker compose up --build ``` -------------------------------- ### Run Interactive Setup Script Source: https://github.com/contentful/apps/blob/master/apps/jira/README.md Use this script for first-time setup or after a long break. It checks dependencies, configures the .env file, displays the Atlassian checklist, and can start the development server. ```bash cd apps/jira npm run setup ``` -------------------------------- ### Bootstrap Contentful App with Example Source: https://github.com/contentful/apps/blob/master/examples/blog-post-metrics/README.md Use these commands to bootstrap a new Contentful app with a specific example. Ensure you have npm, npx, or yarn installed. ```bash npx create-contentful-app --example blog-post-metrics ``` ```bash npm init contentful-app -- --example blog-post-metrics ``` ```bash yarn create contentful-app --example blog-post-metrics ``` -------------------------------- ### Bootstrap Example with Different Package Managers Source: https://github.com/contentful/apps/blob/master/apps/bedrock-content-generator/README.md Use these commands to bootstrap an example Contentful app using npm, npx, or yarn. ```bash # npx npx create-contentful-app --example vite-react ``` ```bash # npm npm init contentful-app --example vite-react ``` ```bash # Yarn yarn create contentful-app --example vite-react ``` -------------------------------- ### Run the setup script Source: https://github.com/contentful/apps/blob/master/examples/app-parameters/README.md Execute the automated setup script to configure the app definition and content types. ```bash npm run setup ``` -------------------------------- ### Install and Run Contentful App Source: https://github.com/contentful/apps/blob/master/examples/page-location/README.md After bootstrapping the app, install its dependencies and start the development server using npm or yarn. The app will be available at http://localhost:3000. ```bash npm install npm start ``` ```bash yarn yarn start ``` -------------------------------- ### Bootstrap Contentful App with Remix Example Source: https://github.com/contentful/apps/blob/master/examples/remix/README.md Use this command to bootstrap a new Contentful App project with the Remix framework example. Ensure you have Node.js installed. ```bash npx create-contentful-app --example remix ``` ```bash npm init contentful-app -- --example remix ``` ```bash yarn create contentful-app --example remix ``` -------------------------------- ### setup Source: https://github.com/contentful/apps/blob/master/packages/dam-app-base/docs/README.md Initializes the app integration. ```APIDOC ## setup ### Description Initializes the provided integration. ### Parameters - **integration** (Integration) - Required - The integration object to set up. ### Returns - **void** ``` -------------------------------- ### Run Frontend Development Server Source: https://github.com/contentful/apps/blob/master/apps/smartling/README.md Installs dependencies and starts the local development server for the React frontend. ```bash npm install npm run start ``` -------------------------------- ### Bootstrap Contentful App Example Source: https://github.com/contentful/apps/blob/master/examples/home-location/README.md Use these commands to bootstrap the home-location example for a Contentful app. ```bash npx create-contentful-app --example home-location ``` ```bash npm init contentful-app -- --example home-location ``` ```bash yarn create contentful-app --example home-location ``` -------------------------------- ### Bootstrap Contentful App with Page Location Example Source: https://github.com/contentful/apps/blob/master/examples/page-location/README.md Use these commands to create a new Contentful app with the page-location example. Ensure you have Node.js and npm/npx/yarn installed. ```bash npx create-contentful-app --example page-location ``` ```bash npm init contentful-app -- --example page-location ``` ```bash yarn create contentful-app --example page-location ``` -------------------------------- ### Bootstrap Contentful App with Example Source: https://github.com/contentful/apps/blob/master/examples/editor-assignment/README.md Use these commands to bootstrap a Contentful app with the editor-assignment example. Choose the command that matches your package manager. ```bash npx create-contentful-app --example editor-assignment ``` ```bash npm init contentful-app -- --example editor-assignment ``` ```bash yarn create contentful-app --example editor-assignment ``` -------------------------------- ### Install dependencies Source: https://github.com/contentful/apps/blob/master/apps/auto-prefix/README.md Run this command to install the necessary project dependencies. ```bash npm install ``` -------------------------------- ### Clone and Install Dependencies Source: https://github.com/contentful/apps/blob/master/apps/klaviyo/README.md Initializes the project repository and installs required Node.js packages. ```bash git clone https://github.com/contentful/marketplace-partner-apps.git cd marketplace-partner-apps/apps/klaviyo ``` ```bash npm install ``` -------------------------------- ### Bootstrap Contentful App with Example Source: https://github.com/contentful/apps/blob/master/examples/function-potterdb/README.md Use this command to create a new Contentful app project with the PotterDB example pre-configured. ```bash npx create-contentful-app@latest --example function-potterdb ``` -------------------------------- ### View migration guide Source: https://github.com/contentful/apps/blob/master/apps-migration-scripts/README.md Displays the comprehensive migration tutorial. ```bash cat GETTING_STARTED.md ``` -------------------------------- ### Install Project Dependencies Source: https://github.com/contentful/apps/blob/master/apps/jira/README.md Install dependencies for the main app and the functions directory. This is a required step for setting up the project. ```bash cd apps/jira npm install cd functions && npm install && cd .. ``` -------------------------------- ### Bootstrap a Contentful App with Examples Source: https://github.com/contentful/apps/blob/master/examples/last-fm/README.md Use these commands to create a new Contentful app, optionally with a specific example. Available for npm, npx, and Yarn. ```bash npx create-contentful-app --example last-fm ``` ```bash npm init contentful-app -- --example last-fm ``` ```bash yarn create contentful-app --example last-fm ``` -------------------------------- ### Run interactive migration tutorial Source: https://github.com/contentful/apps/blob/master/apps-migration-scripts/README.md Starts an interactive session for app selection and safety checks. ```bash ./getting-started.sh ``` -------------------------------- ### setup Function Source: https://github.com/contentful/apps/blob/master/packages/ecommerce-app-base/docs/README.md Sets up the integration with a generic product type. ```APIDOC ## setup ▸ **setup**<`P` >(`integration`): `void` #### Type parameters | Name | Type | | :------ | :------ | | `P` | extends [`Product`](README.md#product) = [`Product`](README.md#product) | #### Parameters | Name | Type | | :------ | :------ | | `integration` | [`Integration`](README.md#integration)<`P` > #### Returns `void` ``` -------------------------------- ### App Installation and Configuration Source: https://github.com/contentful/apps/blob/master/examples/native-external-references-tmdb/README.md Instructions on how to install a Contentful app and configure it with necessary API tokens. ```APIDOC ## Installing the App ### Description Instructions for installing a Contentful app after uploading it. This involves selecting a space and environment, granting access, and configuring the app with necessary tokens. ### Method Command Line Interface (CLI) ### Endpoint N/A (CLI command) ### Parameters N/A ### Request Example ```bash npm run install-app ``` ### Response - Configuration screen rendered by `` component. - User is prompted to input TMDB API token. - App is configured and installed upon saving changes. ``` -------------------------------- ### Start development server Source: https://github.com/contentful/apps/blob/master/apps/auto-prefix/README.md Starts the app in development mode with automatic reloading. ```bash npm run start ``` -------------------------------- ### Install Dependencies Source: https://github.com/contentful/apps/blob/master/apps/drive-integration/README.md Install the necessary Node.js dependencies for the app. ```bash npm install ``` -------------------------------- ### Bootstrap Contentful App with Example Source: https://github.com/contentful/apps/blob/master/examples/function-potterdb-rest-api/README.md Use this command to bootstrap a new Contentful App with the PotterDB REST API example. This sets up the project structure and dependencies. ```bash npx create-contentful-app --example function-potterdb-rest-api ``` -------------------------------- ### Bootstrap the Contentful App Source: https://github.com/contentful/apps/blob/master/examples/native-external-references-tmdb/README.md Initialize a new project using the native-external-references example template. ```bash npx create-contentful-app@latest --example native-external-references ``` -------------------------------- ### Bootstrap the Autotagger Example Source: https://github.com/contentful/apps/blob/master/examples/autotagger/README.md Commands to initialize the project using the create-contentful-app CLI. ```bash # npx npx create-contentful-app --example autotagger # npm npm init contentful-app -- --example autotagger # Yarn yarn create contentful-app --example autotagger ``` -------------------------------- ### Setup Contentful Ecommerce App Base Source: https://github.com/contentful/apps/blob/master/packages/ecommerce-app-base/README.md Use the `setup` function to initialize the ecommerce-app-base library. Configure callbacks for UI elements, app metadata, parameter validation, product fetching, dialog rendering, and more. Ensure all required parameters are defined. ```javascript import { setup } from '@contentful/ecommerce-app-base'; setup({ makeCTA: () => 'Select products', name: 'My SKU App', logo: 'https://example.com/logo.svg', color: '#d7f0fa', description: 'My example SKU App', parameterDefinitions: [ { "id": "category", "type": "Symbol", "name": "Catehory", "description": "Product category of our shop", "required": true } ], validateParameters: () => null, fetchProductPreviews: async (skus) => { const responess = await Promise.all( skus.map(sku => fetch(`https://example.com/products/${sku}`)) ); return responses.map(response => response.json()); }, renderDialog: (sdk) => { const config = sdk.parameters.invocation; const container = document.createElement('div'); container.innerHTML = `