# Compile and run a sample project (/en/realtime-media/voice/build/set-up-your-project/compile-run-sample-project/electron)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Agora provides [Open-source sample projects on GitHub](https://github.com/AgoraIO-Extensions/Electron-SDK) to demonstrate the implementation of basic and advanced Voice SDK features.

    This page shows how to compile, configure, and run the Voice SDK Electron sample project.

    ## Prerequisites [#prerequisites-5]

    * [Node.js](https://nodejs.org/en/download/) 14 or higher.

    * A microphone

    * A valid Agora account and project. Please refer to [Agora account management](../../manage-agora-account.md) for details.

    * Installed [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)

    * [Yarn](https://yarnpkg.com/getting-started) package management tool

    * Python 3.11.x

    ## Project setup [#project-setup-5]

    ### Get the sample project [#get-the-sample-project-5]

    Run the following command to clone the repository locally:

    ```bash
    git clone git@github.com:AgoraIO-Extensions/Electron-SDK.git
    ```

    This repository contains sample projects for Agora Electron Video SDK:

    | Description                                       | Path                                      |
    | ------------------------------------------------- | ----------------------------------------- |
    | Basic functions                                   | `/example/src/renderer/examples/basic`    |
    | Advanced features                                 | `/example/src/renderer/examples/advanced` |
    | [Hook](https://react.dev/reference/react) example | `/example/src/renderer/examples/hook`     |

    ### Configure the sample project [#configure-the-sample-project-4]

    1. **Install dependencies**

       Switch to the `/example` directory and run the following commands to integrate the SDK and install dependencies:

       ```bash
       yarn
       ```

    ## Run the sample project [#run-the-sample-project-5]

    1. To run the sample project, execute the following command in the `/example` directory:

       ```bash
       yarn start
       ```

    2. After the operation is complete, you see the following application on your screen:

       ![image](https://assets-docs.agora.io/images/video-sdk/run-compile-electron-step-2.png)

    3. On the **Settings** page, fill in the App Id and temporary token you obtained from the Console. Fill in the same channel name you used when generating the temporary token. Click **Save** to save your settings.

    4. Select a demo you want to experience from the menu on the left. Choose **JoinChannelVideo**, under **Basic**, as an example and click **join channel**.

    5. To test various audio and video interaction use-cases, connect to the [Agora web demo](https://webdemo.agora.io/basicVideoCall/index.html), or install and run the sample project on a second device. Make sure you use the same app ID on both devices. When you join the same channel from two devices, you can see and hear each other.

    
  
      
  
      
  
      
  
      
  
      
  
      
  
      
  
