Closed forrestbao closed 2 years ago
Modular usage supported in https://github.com/TexteaInc/PyDataFront/commit/c62e81c35c8648a4ad6863491387c4ff6325d7ec
Sample: python3 -m pydatafront functions --host localhost --port 4010
Second thought on this. Since we cannot automatically fire both the frontend and backend servers due to Python's limitation anyway, let's just break this into three steps:
A user will type three commands respectively.
Can we allow PyDataFront to convert a Python module from any path?
In the example below, functions.py
must locate in the same directory as pydatafront
. It is inconvenient.
I wish the new command can be python3 -m pydatafront ../any_location.py --host localhost --port 4010
Modular usage supported in c62e81c
Sample:
python3 -m pydatafront functions --host localhost --port 4010
I think it now solves the problem very well.
I wish the user experience can be like this:
Then both the frontend and backend servers will be fired up. And visiting
localhost:4000
will show the app.Can we do this?