Search
Loading...
Skip to content

Clone GitHub Electron Project

This guide will walk you through cloning and running a preconfigured CreativeEditor SDK (CE.SDK) Electron integration project from GitHub. It’s the quickest way to get started with CE.SDK without needing to set everything up from scratch.

Who Is This Guide For?#

This guide is great for developers who:

  • Want to explore CE.SDK without the need to configure a custom setup.
  • Prefer working with a ready-to-go Electron sample project.
  • Are familiar with using Git and Node.js for managing local development environments.

What You’ll Achieve#

  • Clone the CE.SDK Electron integration project from GitHub.
  • Install the necessary dependencies and run the project locally.
  • Open a fully functional image and video editor right in your browser.

Prerequisites#

Before starting, make sure you have the following:

  • Git: Required to clone the project repository. Download Git.
  • The latest LTS version of Node.js and npm: Needed to install dependencies and run the development server. Download Node.js.
  • A valid CE.SDK license key (Get a free trial).

Step 1: Clone the GitHub Repository#

Clone the CE.SDK examples repository from GitHub:

Terminal window
git clone https://github.com/imgly/cesdk-web-examples.git

Then navigate to the Electron integration folder:

Terminal window
cd cesdk-web-examples/integrate-with-electron

Step 2: Install the Dependencies#

Install the required dependencies with npm:

Terminal window
npm install

This will fetch and install all the necessary packages listed in the project’s package.json file.

Step 3: Add Your CE.SDK License Key#

Open the index.html file and replace the placeholder with your valid CE.SDK license key:

const config = {
license: '<YOUR_CE_SDK_LICENSE>', // replace this with your CE.SDL license key
// ...
};

Step 4: Run the Project#

Start the Electron development server by executing:

Terminal window
npm run start

By default, the application will open in a native window provided by Electron. You’ll be able to see the creative editor in action here.

Troubleshooting & Common Issues#

Error: 'electron' is not recognized as an internal or external command, operable program or batch file.

  • Ensure you’ve successfully run npm install before attempting npm run dev.

Error: Invalid license key

  • Double-check that the license key is correctly added and valid.

Next Steps#

Congratulations! You’ve successfully set up CE.SDK with Electron. When you’re ready, explore the SDK further and move on to the next steps: