Skip to content

Installation

Overview

Display SDK is using Vite as build tool that aims to provide a faster and leaner development experience for contentfry displays.

Compatibility Note

Vite requires Node.js version >=12.0.0.

To run development on any display demo sample:

First install dependencies

bash
yarn install

Run local development

bash
yarn dev

Build to production (dist folder)

bash
yarn build

Import

Displays import SDK as following.

html
<!-- Import contentfry-display-sdk -->
<link href="https://platform.contentfry.com/sdk/latest/contentfry-display-sdk.css" rel="stylesheet" type="text/css" >
<script src="https://platform.contentfry.com/sdk/latest/contentfry-display-sdk.js" type="text/javascript" ></script>