# Electron SPA App This project is a simple and configurable **Electron desktop application** that embeds a **Single Page Application (SPA)** โ€” such as a React, Vue, or static HTML/JavaScript app โ€” into a desktop environment. The app uses a `.env` file to allow easy configuration of the window size, title, and the path to your SPA entry point. --- ## ๐Ÿ“ Project Structure ``` electron-spa-app/ โ”œโ”€โ”€ src/ # Electron main process code โ”‚ โ””โ”€โ”€ main.js โ”œโ”€โ”€ .env # App configuration โ”œโ”€โ”€ package.json โ””โ”€โ”€ README.md ``` --- ## โš™๏ธ Features - Embeds an IVA Application via Proxy Endpoint - Configurable via `.env` (window size, title, entry point) - Cross-platform support (macOS, Windows, Linux) - Follows a clean folder structure --- ## ๐Ÿงช Prerequisites - [Node.js](https://nodejs.org/) (v16 or higher recommended) - [npm](https://www.npmjs.com/) - [Electron](https://www.electronjs.org/) (installed as a dev dependency) --- ## ๐Ÿ“ฆ Installation 1. **Clone the repository or copy the project:** ```bash git https://git.mortons.site/verint.com/iva-studio-workspace.git cd iva-studio-workspace/electron-spa-app npm install ``` ## ๐Ÿ› ๏ธ Configuration Edit the .env file in the root of the project to customize the app settings: ```bash APP_TITLE=My Electron SPA WIDTH=1024 HEIGHT=768 PROXY_ENDPOINT=https://router.ivastudio.verint.live/ProxyScript/run/67bca862210071627d32ef12/current/fullscreen_messenger ``` - APP_TITLE โ€“ Title shown in the window - WIDTH, HEIGHT โ€“ Initial window size - PROXY_ENDPOINT โ€“ URL to your Proxy Endpoint ## ๐Ÿš€ Run the App To start the Electron application: ```bash npm start ``` This will launch the desktop window and load your SPA.