Flask backend template for jdm-electron-flask-template desktop apps.
- Python Flask + Flask-SocketIO
- jdm-electron-flask PyPI package
- PyInstaller for exe packaging
backend/
├── app/
│ ├── api/ # Blueprint routes
│ ├── core/ # Services
│ └── event/ # SocketIO events
├── config/
│ └── api.json # Route registration
├── .env # Secrets (gitignored)
├── production_run.py # Entry point for exe
├── requirements.txt
└── run.py # Dev entry point
pip install -r requirements.txt
cp .env.example .env
python run.pyrun make-api --name personThis scaffolds app/api/person.py, app/core/person_service.py, and registers it in config/api.json.
run compile --backendBuilds the Flask server as a standalone exe using PyInstaller and copies it to electron/resources and electron/test.
| Key | Description |
|---|---|
SECRET_KEY |
Flask secret key |