# Compile and run a sample project (/en/realtime-media/rtc/build/join-and-manage-channels/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 RTC SDK features.

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

    
  
      
  
      
  
      
  
      
  
      
  
## Prerequisites

      
  
      
  
      
  
      
  
      
  
      
  
      
  
      
* [Node.js](https://nodejs.org/en/download/) 14 or higher.
* [Yarn](https://yarnpkg.com/getting-started).
* Python 3.11.x.

    
  
      
  
      
  
      
  
      
  
{ /*
  - If a firewall is deployed in your network environment, refer to [Connect through restricted networks with Cloud Proxy](/en/realtime-media/rtc/manage-agora-account) to use Agora services normally.
  */ }

* A camera and a microphone

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

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

## Project setup

      
  
      
  
      
### Get the sample project

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 Web RTC 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

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

      
  
      
  
      
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:

   ![](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.

    
  
      
  
      
  
      
  
      
  
      
  
      
  
      
  
      
  
      
  
