iPzard/electron-react-python-template
소개
Multi-platform Electron template, using React & Redux Toolkit on the front-end and Python/Flask for microservices on the back-end.
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalElectron, React & Python Template
Multi-platform Electron template, using React & Redux Toolkit with Python/Flask microservices.

🛠️ Setup
These setup steps are for developers building on top of the template. End users who install your packaged app (MSI / DMG / DEB) need none of this — the installer ships everything.
Prerequisites
| Tool | Recommended | Notes |
|---|---|---|
| Node.js | 20.19+ LTS (or 22.12+) | Required by Vite 7. ESLint 9 also enforces a modern Node. No --openssl-legacy-provider workaround needed. |
| Yarn 1 | 1.22.x | npm install works too, but lockfile + scripts are tested against Yarn 1. |
| Python | 3.10 – 3.12 | Used for the Flask service in dev and bundled by PyInstaller for production. |
| pip | bundled with Python | Use pip, pip3, or py -m pip — whichever your install exposes. |
Platform-specific (only when packaging installers):
- Windows MSI: WiX Toolset 3.x on
PATH(e.g.,C:\Program Files (x86)\WiX Toolset v3.14.1\bin). - Linux DEB:
fakerootanddpkgonPATH(sudo apt install fakeroot dpkg). - macOS DMG: no extra tools needed for an unsigned build. Code signing requires an Apple Developer ID.
Install dependencies
Clone the repo and from the project root:
Python deps (Flask, flask-cors, PyInstaller, pytest):
pip install -r requirements.txt
Node deps:
yarn install
⚙️ Config
Electron: Electron's main.ts and preload.ts files can be found in the project's root directory. They compile to dist-electron/ via tsc -p tsconfig.electron.json (run automatically by yarn start and yarn build).
React: React files can be found in the ./src/ folder, the custom titlebar is in ./src/components/titlebar.
Python: Python scripts can be created in the ./app.py file and used on events via REST calls.
📜 Scripts
Below are the scripts you'll need to run and package your application, as well as build out TypeDoc documentation, if you choose to do so. An exhaustive list of scripts that are available can be found in the package.json file of the project's root directory, in the scripts section.
⚠️ PyInstaller is included in requirements.txt, so a separate install is no longer required. Installer metadata (name, version, manufacturer, description) is pulled from the matching fields in package.json automatically. |
|---|
Start Developer Mode:
yarn run start
Package Windows: 1
yarn run build:package:windows
Package macOS:
yarn run build:package:mac
Package Linux:
yarn run build:package:linux
Build Documentation:
yarn run build:docs
1Windows uses electron-wix-msi, you must install and add its path to your environment variables.
✅ Verify
Run before pushing — same chain CI runs.
Full chain (lint → typecheck → vitest → pytest → Vite build):
yarn verify
Individual steps:
yarn lint # ESLint 9 flat config (eslint.config.ts)
yarn typecheck # tsc --noEmit across renderer / electron / scripts tsconfigs
yarn test # Vitest (non-watch via `vitest run`)
yarn test:python # pytest against tests/test_app.py
🐱👓 Docs
Code documentation for this template, created with TypeDoc, can be found here:
Electron, React, & Python Template
🦟 Bugs
Bugs reported on the project's issues page will be exterminated as quickly as possible, be sure to include steps to reproduce so they can be spotted easily.
🏷️ License
MIT © iPzard
관련 프로젝트 살펴보기
불러오는 중…