Skip to content

OpenDCAI/DataFlow-WebUI

Repository files navigation

DataFlow-WebUI

Frontend Installation

  1. NVM(Node Version Manager) installation
# github download
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
# Mirror Download (faster in China)
curl -so- https://gitee.com/mirrors/nvm/raw/v0.39.7/install.sh | bash
  1. Refresh the terminal to activate the NVM command
# using bash
source ~/.bashrc
# using zsh
source ~/.zshrc
  1. Install NVM 20
nvm install 20
nvm use 20
nvm alias default 20
  1. check version for node and NPM, node should be version v20.x.x
node -v
npm -v
  1. Build the frontend, after this, the built frontend page files will appear under frontend/dist.
cd frontend/
npm i
npm run build

Backend Installation

  1. Install DataFlow

    There are two options. The first one is installing the latest DataFlow from GitHub

    git clone https://github.com/OpenDCAI/DataFlow
    cd DataFlow
    pip install -e .

    The second option is to install the stable DataFlow from PyPI

    pip install open-dataflow
  2. Then you need to install the actual dependency for DataFlow-webui.

    pip install -r backend/requirements.txt

Run this project

  1. Frontend compilation
cd frontend/
npm i
npm run build
  1. Backend Run
cd backend/
# If you are using Linux
make dev
# If you are using Windows
uvicorn app.main:app --reload --port 8000  --reload-dir app --host=0.0.0.0

Then you can visit http://localhost:<backend port>/ui/ to use the DataFlow-webUI. By default, the <backend port> is set to 8000.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 10