Use rete-kit
to create the frontend, using react
npm i -g rete-kit
rete-kit frontend
npm start
Build frontend application so that it generates static files (HTML, CSS, JavaScript, etc.).
npm run build
This typically creates a build directory with all the static files needed to deploy the frontend.
Now, ensure these static files are included in the Python package. The [tool.setuptools.package_data] in the pyproject.toml should be set to include these files.
[tool.setuptools.package_data]
your_package_name = ["path/to/frontend/build/*"]
Use FastAPI
The documentation page is http://localhost:8000/docs
.