diff --git a/README.md b/README.md index 5b7da2b..fb53ae5 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ However, Python applications can be frozen with [PyInstaller](https://www.pyinst The whole workflow consists of freezing backend and frontend separately. This is because there have been enormous problems with the packaging of [PyQt5](https://www.riverbankcomputing.com/software/pyqt/) (the Python-based frontend), and we are using a JavaScript-based frontend, [Electron](https://electronjs.org/), instead. To run Topics Explorer from source code, we still use PyQt5 because it works pretty well and we stick with one programming language. -The backend is a [Flask](http://flask.pocoo.org/) application that is started with the script `topicsexplorer.py` and the parameter `--frozen` (or in the actually frozen application also without this parameter). The home page will be available at `http://localhost:5000`. +The backend is a [Flask](http://flask.pocoo.org/) application that is started with the script `topicsexplorer.py` and the parameter `--frozen` (or in the actually frozen application also without this parameter). The home page will be available at `http://localhost:5001`. It is recommended to install the current [`develop`](https://github.com/pyinstaller/pyinstaller/tree/develop) branch from PyInstaller on GitHub. If you encounter problems, you should try different versions of the application’s dependencies. @@ -155,7 +155,7 @@ This is _really_ easy. Checkout the `freeze-frontend` branch and follow the inst ### Putting it all together -You now have a `topics-explorer-backend` folder containing the frozen Flask application in the form of an executable with all other resources, and a `topics-explorer-frontend` folder containing an executable with all resources. You could already deploy the application now, since you start the backend first, then the frontend. The `convenience-wrapper` branch contains a script that does just that for you. It starts a subprocess to start the backend, waits until `http://localhost:5000` is available, and then starts the frontend. +You now have a `topics-explorer-backend` folder containing the frozen Flask application in the form of an executable with all other resources, and a `topics-explorer-frontend` folder containing an executable with all resources. You could already deploy the application now, since you start the backend first, then the frontend. The `convenience-wrapper` branch contains a script that does just that for you. It starts a subprocess to start the backend, waits until `http://localhost:5001` is available, and then starts the frontend. Checkout the branch `convenience-wrapper`, and follow the instructions in the README. If your frozen application adheres to the following structure and everything works, congratulations, zip it and release it: diff --git a/application.py b/application.py index a45aa51..f6e31a7 100644 --- a/application.py +++ b/application.py @@ -4,5 +4,5 @@ if __name__ == "__main__": - webbrowser.open("http://localhost:5000/") - views.web.run() + webbrowser.open("http://localhost:5001/") + views.web.run(port=5001) diff --git a/topicsexplorer/__pycache__/__init__.cpython-38.pyc b/topicsexplorer/__pycache__/__init__.cpython-38.pyc deleted file mode 100644 index f11630f..0000000 Binary files a/topicsexplorer/__pycache__/__init__.cpython-38.pyc and /dev/null differ diff --git a/topicsexplorer/__pycache__/__main__.cpython-38.pyc b/topicsexplorer/__pycache__/__main__.cpython-38.pyc deleted file mode 100644 index 9e194fc..0000000 Binary files a/topicsexplorer/__pycache__/__main__.cpython-38.pyc and /dev/null differ diff --git a/topicsexplorer/__pycache__/database.cpython-38.pyc b/topicsexplorer/__pycache__/database.cpython-38.pyc deleted file mode 100644 index ef9016a..0000000 Binary files a/topicsexplorer/__pycache__/database.cpython-38.pyc and /dev/null differ diff --git a/topicsexplorer/__pycache__/utils.cpython-38.pyc b/topicsexplorer/__pycache__/utils.cpython-38.pyc deleted file mode 100644 index 763fe00..0000000 Binary files a/topicsexplorer/__pycache__/utils.cpython-38.pyc and /dev/null differ diff --git a/topicsexplorer/__pycache__/views.cpython-38.pyc b/topicsexplorer/__pycache__/views.cpython-38.pyc deleted file mode 100644 index cf39fa5..0000000 Binary files a/topicsexplorer/__pycache__/views.cpython-38.pyc and /dev/null differ diff --git a/topicsexplorer/__pycache__/workflow.cpython-38.pyc b/topicsexplorer/__pycache__/workflow.cpython-38.pyc deleted file mode 100644 index 72243e0..0000000 Binary files a/topicsexplorer/__pycache__/workflow.cpython-38.pyc and /dev/null differ