lewisacidic / electron-flask Goto Github PK
View Code? Open in Web Editor NEWQuick and dirty demo of a cross platform native app using electron to provide a html/css/javascript client with a python backend.
License: MIT License
Quick and dirty demo of a cross platform native app using electron to provide a html/css/javascript client with a python backend.
License: MIT License
Hey, great demo, but when I package the app the button event/callback no longer works. Any ideas? Thanks!
update: seems to be cos api is not being served when packaged.
This is a promising little project, would be nice to update it and perhaps switch to the latest gulp 4 and perhaps electron-forge for the electron side of things.
Pity I don't understand the gulp stuff - looks like some interesting web serving and piping going on - not sure if the 'wiring' can be replicated with pure js - or something else?
For my use case, ideally it would be nice to be able to run several servers (minio, redis, flask) and have electron talk to flask. Then shut down the servers gracefully on electron exit.
const { Math, Object } = primordials;
^
ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (/Users/me/Downloads/electron-flask-master/node_modules/natives/index.js:143:24)
at Object.req [as require] (/Users/me/Downloads/electron-flask-master/node_modules/natives/index.js:55:10)
at Object.<anonymous> (/Users/me/Downloads/electron-flask-master/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:959:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:995:10)
at Module.load (internal/modules/cjs/loader.js:815:32)
at Function.Module._load (internal/modules/cjs/loader.js:727:14)
at Module.require (internal/modules/cjs/loader.js:852:19)
at require (internal/modules/cjs/helpers.js:74:18)
happens whenever i run any of the gulp
commands
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.