-
Clone the repository onto your system or create a new react app using the
npx create-react-appcommand- The only file that I have added after
npx create-react-appis theindex.py - Also added
<script type="text/javascript" src="/eel.js"></script>to index.html inside/public
- The only file that I have added after
-
Open a terminal and run
npm installin the project directory to download the node modules -
If you do not have python installed, install python
- The installation varies based on the system you are on
-
If python is installed run
pip install eelorpip3 install eelbased on which version of python and pip you have- In the examples I am using
python3. Remove the3if it is uneeded for your system - You can check python verion by running
python -Vorpython3 -V - You can check pip version by running
pip -Vorpip3 -V
- In the examples I am using
- Open a terminal and run
npm start- This starts a development server running your code
- Open a second terminal and run
python3 index.py -dev- This opens a python-eel window for you to develop in
- Open a terminal and run
npm run build- This will create a
/buildfolder with the production code inside
- This will create a
- To view the built project run
python3 index.py- This will open a python-eel window allowing you to view and test your program
- Open a terminal and run
pip3 install PyInstallerif you do not already have it installed- This will install PyInstaller
- Next run
python3 -m eel index.py build- This will take your production code inside of the build folder and convert it to a standalone executable file
- The executable will be in
/dist/index- Run the executable to view your program
