概要
Multi-platform Electron template, using React & Redux Toolkit on the front-end and Python/Flask for microservices on the back-end.
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- +1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルElectron, 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
関連プロジェクトを探す
読み込み中…