Create a flask application at backend and use its rest services at frontend with electron. flask
can be packaged as a standalone desktop application as well as electron
. Here we can use packaged flask
in electron
as rest api service.
- pyinstaller: Backend, flask packaging
- electron-builder: Frontend, electron packaging
Please note that this repository is a demo for this case, it is not working completely.
make install
make run
make build
make run-packaged
NOTE: electron-builder
hasn't finished yet. Check electron/main.js/runFlask()
. It is currently manual, use files
option of electron-builder
.