I want to create a desktop app with Electron JS and form front end I can use React JS as I'm familiar with it. I have a good grasp of Python I checked over the internet but they all wanted me to create an API and run it on local I can do that and connect to react electron app but for distribution, I need the user to install Python as well. I know I can go for node js as a backend but I have a lot of work ready in Python like backend logic and the app will run on desktop only no need to connect to Internet for that. I need to know if I need user to install python as well. I don't want that.
I want to create a desktop app with Electron JS and form front end I can use React JS as I'm familiar with it. I have a good grasp of Python I checked over the internet but they all wanted me to create an API and run it on local I can do that and connect to react electron app but for distribution, I need the user to install Python as well. I know I can go for node js as a backend but I have a lot of work ready in Python like backend logic and the app will run on desktop only no need to connect to Internet for that. I need to know if I need user to install python as well. I don't want that.
Share Improve this question asked Mar 5, 2020 at 11:33 vadorvador 431 silver badge5 bronze badges 1- There are two problems with that : first you can only run an exe on windows. seconds how are we going to run an exe with electron js I mean we could try to run it as mand and pass function and variables there but they will be two apps one is exe and one is electron app and if we cannot merge them then they are two apps – vador Commented Mar 5, 2020 at 11:45
2 Answers
Reset to default 5I think this is exactly what you're looking for, it's a reusable Electron template that uses a React front-end with Redux & Redux Toolkit, and is integrated with Python/Flask for microservices. Packaging functions with build scripts are available for Windows and macOS.
You can just copy the parts you need or clone the template and use it.
https://github./iPzard/electron-react-python-template
If you don't want the user to have to install Python then you need to use something to package it together. Check out Pyinstaller, once you've created an exe it can be distributed and doesn't require the user to install Python
https://www.pyinstaller/
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744273844a4566234.html
评论列表(0条)