Skip to content

Latest commit

Β 

History

History
52 lines (39 loc) Β· 1.03 KB

File metadata and controls

52 lines (39 loc) Β· 1.03 KB

πŸš€ Electron Python Template

Application combining Electron (frontend) with Python Flask API (backend).

πŸ“‹ Requirements

  • 🟒 Node.js (version 16 or newer)
  • 🐍 Python 3.8+ with pip
  • πŸ“¦ npm (installed with Node.js)

⚑ Quick Start

πŸͺŸ Windows

start.bat

πŸ› οΈ Manual Launch

  1. Install dependencies:
npm run setup
  1. Run the application:
npm start

🧩 How it Works

  1. Electron automatically starts Python API server on port 5000
  2. Frontend communicates with API through HTTP requests
  3. When Electron closes, Python process is automatically terminated

πŸ—‚οΈ Project Structure

β”œβ”€β”€ πŸ“– README.md
β”œβ”€β”€ 🐍 api.py
β”œβ”€β”€ 🌐 index.html
β”œβ”€β”€ πŸ“„ main.js
β”œβ”€β”€ πŸ“„ package-lock.json
β”œβ”€β”€ πŸ“„ package.json
β”œβ”€β”€ πŸ“„ renderer.js
β”œβ”€β”€ πŸ“„ requirements.txt
β”œβ”€β”€ 🐚 start.bat
└── 🎨 styles.css

πŸ§ͺ Testing

After launch, click the "Test Python API" button to check communication between Electron and Python.