Skip to content

Installation

  • Python 3.11 or higher
  • Poetry
Terminal window
git clone https://gitlab.com/leaf-framework/leaf-graft.git
cd graft
Terminal window
poetry install
Terminal window
poetry run python app/main.py

Open http://localhost:8000 in your browser.

On first launch, open the Database Settings tab to configure your WebSocket endpoint and data source.

Terminal window
./build.sh

This builds and starts the container, serving GRAFT at http://localhost:8000.

To pass WebSocket credentials:

Terminal window
docker run -p 8000:8000 -e WS_USERNAME=myuser -e WS_PASSWORD=mypass graft

poetry: command not found : Install Poetry: curl -sSL https://install.python-poetry.org | python3 -

ModuleNotFoundError on startup : Run poetry install again to ensure all dependencies are present.

Dashboard does not open automatically : Navigate manually to http://localhost:8000 in your browser.