Skip to content

aiidateam/aiida-workgraph-web-ui

Repository files navigation

Welcome to AiiDA WorkGraph Web UI!

PyPI version Docs status Unit test

Web UI to visualize and manage the AiiDA WorkGraph.

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.