You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/react/README.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,8 @@
1
1
## React WebUI Example
2
2
3
3
This is a basic example of how to use WebUI with React to generate a portable single executable program. WebUI will run the internal web server and use any installed web browser as GUI to show the React UI.
4
-
__NOTE: To make an executable for python, look into pyinstaller or similar type libraries (pathing may have to be automated in some places to differentiate runtime and built file locations)__
5
4
6
-
A simple Python script `vfs.py` is used to generate `vfs.h`to embed the whole react's build folder into the portable single executable program.
5
+
__NOTE: To make an executable for python, look into `pyinstaller` or similar type libraries (pathing may have to be automated in some places to differentiate runtime and built file locations)__
7
6
8
7

9
8
@@ -16,7 +15,7 @@ A simple Python script `vfs.py` is used to generate `vfs.h` to embed the whole r
16
15
1. Run `npx create-react-app my-react-app` to create a React app using NPM
17
16
2. Add `<script src="webui.js"></script>` into `public/index.html` to connect UI with the backend
18
17
3. Copy or make your own vfs functions similar to how it's done in main.py
19
-
4. Build the react-app portion with `npm run build`; This step must be done every change you make to the react portion of the app
18
+
4. Build the react-app portion with `npm run build`; This step must be done for every change you make to the react portion of the app
20
19
5. Now, run `python main.py` or whatever your main entry script is.
0 commit comments