下载并安装 NodeJS >= 18.15.0
-
安装 Flowise
npm install -g flowise
-
启动 Flowise
npx flowise start
想要使用 username & password ?
npx flowise start --FLOWISE_USERNAME=user --FLOWISE_PASSWORD=1234
- 跳转到位于项目根目录的
docker
文件夹 - 创建
.env
文件并指定PORT
(参考.env.example
) docker-compose up -d
- 打开 http://localhost:3000
- 你可以运行这条命令停止运行
docker-compose stop
-
本地构建镜像:
docker build --no-cache -t flowise .
-
启动镜像:
docker run -d --name flowise -p 3000:3000 flowise
-
停止服务:
docker stop flowise
Flowise 有 3 个 不同的模块在这个 monorepo 中.
server
: Node 实现的后端逻辑ui
: React 实现的前端components
: Langchain 组件
- 安装 Yarn v1
npm i -g yarn
-
克隆这个仓库
git clone https://github.com/MH-14/Flowise-ZH.git
-
进入仓库文件夹
cd Flowise
-
安装所有模块需要的依赖:
yarn install
-
构建全部的代码:
yarn build
-
启动应用:
yarn start
你能在这里访问到应用 http://localhost:3000
-
对于开发者的方式:
-
Create
.env
file and specify thePORT
(refer to.env.example
) inpackages/ui
-
Create
.env
file and specify thePORT
(refer to.env.example
) inpackages/server
-
Run
yarn dev
任何代码的改变都将让应用重新加载 http://localhost:8080
-
要开启应用层的认证, 在 packages/server
下的 .env
添加 FLOWISE_USERNAME
和 FLOWISE_PASSWORD
:
FLOWISE_USERNAME=user
FLOWISE_PASSWORD=1234
Flowise support different environment variables to configure your instance. You can specify the following variables in the .env
file inside packages/server
folder. Read more
马上到
随意提问, 有新特性需求一起讨论
Thanks go to these awesome contributors
See contributing guide. Reach out to us at Discord if you have any questions or issues.
Source code in this repository is made available under the MIT License.