Git Product home page Git Product logo

electron-python-react-boilerplate's Introduction

electron-react-python-boilerplate

中文

Reason

Forked electron-react-boilerplate:https://github.com/chentsulin/electron-react-boilerplate
Inspired by electron-python:https://github.com/friddle/electron-python-example.git Fixed to use python backend.
Because Js is suck to write background code.

Attention:

NodeJs:NODE_MODULE use version with 54 ,NODE version startwith 8
Linux must install libzmq-dev(sudo apt-get install libzmq-dev)
PyInstaller meet the problem on Mac System

Issue[zeromq/pyzmq#1105]

Fix by code blow found code location:/usr/local/lib/python2.7/site-packages/zmq/init.py

    try:
        from . import libzmq
    except ImportError as e:
        pass

Change to

    try:
        from . import libzmq
    except ImportError as e:
        #for compatiable pyinstaller runner
        import os;os.chdir(os.path.join(os.path.dirname(__file__),"../"))
        import shutil;
        if os.path.exists("./zmq/libzmq.so"): shutil.copy('./zmq/libzmq.so','./');
        import libzmq

Usage

remove package test/flow method
Python/JS pass by zerorpc All python code is in pysrc

Development

1.run development environment:
yarn run start-render-dev
yarn run start-main-dev

2.run package
yarn run package-mac or other platform

more usage:please fix the update

electron-python-react-boilerplate's People

Contributors

friddle avatar

Watchers

James Cloos avatar Armen Rostamian avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.