- 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- Refresh the terminal to activate the NVM command
# using bash
source ~/.bashrc
# using zsh
source ~/.zshrc- Install NVM 20
nvm install 20
nvm use 20
nvm alias default 20- check version for node and NPM, node should be version
v20.x.x
node -v
npm -v- Build the frontend, after this, the built frontend page files will appear under
frontend/dist.
cd frontend/
npm i
npm run build-
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
-
Then you need to install the actual dependency for
DataFlow-webui.pip install -r backend/requirements.txt
- Frontend compilation
cd frontend/
npm i
npm run build- 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.0Then you can visit http://localhost:<backend port>/ui/ to use the DataFlow-webUI. By default, the <backend port> is set to 8000.