Skip to content

Simple demo of Shakr Editor SDK in Node.js and Express

License

Notifications You must be signed in to change notification settings

shakrmedia/editor-sdk-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

editor-sdk-demo-nodejs

This is a usage example of Shakr's Editor SDK in Node.js.

⚠️ Note: Shakr Editor SDK is only available to Shakr Beyond customers. Please contact your account representative to get your API credentials, including Client ID and Client Secret.

System requirements

  • Node.js 10 or up

Usage

Shakr Editor SDK only allows embedding inside secure domain that uses HTTPS. When you're testing locally, either use a browser like Firefox which you can ignore certificate error and proceed, or launch Chrome with --ignore-certificate-errors flag. Alternatively, you can modify the code to add your own self-signed certificate and add it to your system certificate store.

  1. Install Node.js dependecies via npm install or yarn install.
  2. Copy the example .env file (.env.exmaple) to .env and replace placeholders with your client ID, client secret.
  3. Run Node.js server via npm run start or yarn start.
  4. Open https://localhost:3000 in browser.

Example Video Design

Contemporary Estates-Square

Example codes

This Node.js source file contains functions to acquire server-side token, and create a Render Session object with template_style_version_id and edit_token option.

Example media library data for custom media library feature example. Example images from Unsplash

Example Client

Most basic example that has codes to launch Shakr Editor with SDK.

Example code to launch SDK Shakr Editor with customized theme.

Example code to show render progress after finishing editing session and display download link after closing Shakr Editor.

This example has codes to prefill resource before launching Shakr Editor.

This example has codes to inject custom media library data into Shakr Editor UI.

This example has codes to show custom UI for media library.

About

Simple demo of Shakr Editor SDK in Node.js and Express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published