javascript - Create an electron JS desktop app with python and react js - Stack Overflow

I want to create a desktop app with Electron JS and form front end I can use React JS as I'm famil

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
Add a ment  | 

2 Answers 2

Reset to default 5

I 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条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信