Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 763 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 763 Bytes

Frontend

Use rete-kit to create the frontend, using react

npm i -g rete-kit
rete-kit frontend

Run

npm start

Build

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.

Include Frontend Build in the Package

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/*"]

Backend

Use FastAPI

The documentation page is http://localhost:8000/docs.