This is an example of Live Preview GraphQl implementation.
- Contentstack account
- Stack Api Key
- Publish Environment
- Contentstack Delivery Token
- Contentstack Management Token
Please check this for more info on this.
- Step 1: Create a content type with
single line textboxandurlfield and then create a entry with this content type - Step 2: Add you own credentials in
contentstack.config.js - Step 3: Install all the dependencies
npm install
- Step 4: Start the example application
npm start
Note: The example will start on
localhost:3000
contentstack.config.jsThis file contain configuration related toContentstak SDKandContentstack live preview SDKComponents/Home.jsThis file contain all the implementation of live preview added to the component