190 lines
5.8 KiB
Markdown
190 lines
5.8 KiB
Markdown
<!-- markdownlint-disable MD030 -->
|
||
|
||
<p align="center">
|
||
<img src="https://github.com/FlowiseAI/Flowise/blob/main/images/flowise_white.svg#gh-light-mode-only">
|
||
<img src="https://github.com/FlowiseAI/Flowise/blob/main/images/flowise_dark.svg#gh-dark-mode-only">
|
||
</p>
|
||
|
||
[](https://github.com/FlowiseAI/Flowise/releases)
|
||
[](https://discord.gg/jbaHfsRVBW)
|
||
[](https://twitter.com/FlowiseAI)
|
||
[](https://star-history.com/#FlowiseAI/Flowise)
|
||
[](https://github.com/FlowiseAI/Flowise/fork)
|
||
|
||
[English](../README.md) | [繁體中文](./README-TW.md) | 简体中文 | [日本語](./README-JA.md) | [한국어](./README-KR.md)
|
||
|
||
<h3>可视化构建 AI/LLM 流程</h3>
|
||
<a href="https://github.com/FlowiseAI/Flowise">
|
||
<img width="100%" src="https://github.com/FlowiseAI/Flowise/blob/main/images/flowise_agentflow.gif?raw=true"></a>
|
||
|
||
## ⚡ 快速入门
|
||
|
||
下载并安装 [NodeJS](https://nodejs.org/en/download) >= 18.15.0
|
||
|
||
1. 安装 Flowise
|
||
```bash
|
||
npm install -g flowise
|
||
```
|
||
2. 启动 Flowise
|
||
|
||
```bash
|
||
npx flowise start
|
||
```
|
||
|
||
3. 打开 [http://localhost:3000](http://localhost:3000)
|
||
|
||
## 🐳 Docker
|
||
|
||
### Docker Compose
|
||
|
||
1. 进入项目根目录下的 `docker` 文件夹
|
||
2. 创建 `.env` 文件并指定 `PORT`(参考 `.env.example`)
|
||
3. 运行 `docker compose up -d`
|
||
4. 打开 [http://localhost:3000](http://localhost:3000)
|
||
5. 可以通过 `docker compose stop` 停止容器
|
||
|
||
### Docker 镜像
|
||
|
||
1. 本地构建镜像:
|
||
```bash
|
||
docker build --no-cache -t flowise .
|
||
```
|
||
2. 运行镜像:
|
||
|
||
```bash
|
||
docker run -d --name flowise -p 3000:3000 flowise
|
||
```
|
||
|
||
3. 停止镜像:
|
||
```bash
|
||
docker stop flowise
|
||
```
|
||
|
||
## 👨💻 开发者
|
||
|
||
Flowise 在一个单一的代码库中有 3 个不同的模块。
|
||
|
||
- `server`:用于提供 API 逻辑的 Node 后端
|
||
- `ui`:React 前端
|
||
- `components`:第三方节点集成
|
||
|
||
### 先决条件
|
||
|
||
- 安装 [PNPM](https://pnpm.io/installation)
|
||
```bash
|
||
npm i -g pnpm
|
||
```
|
||
|
||
### 设置
|
||
|
||
1. 克隆仓库
|
||
|
||
```bash
|
||
git clone https://github.com/FlowiseAI/Flowise.git
|
||
```
|
||
|
||
2. 进入仓库文件夹
|
||
|
||
```bash
|
||
cd Flowise
|
||
```
|
||
|
||
3. 安装所有模块的依赖:
|
||
|
||
```bash
|
||
pnpm install
|
||
```
|
||
|
||
4. 构建所有代码:
|
||
|
||
```bash
|
||
pnpm build
|
||
```
|
||
|
||
5. 启动应用:
|
||
|
||
```bash
|
||
pnpm start
|
||
```
|
||
|
||
现在可以在 [http://localhost:3000](http://localhost:3000) 访问应用
|
||
|
||
6. 用于开发构建:
|
||
|
||
- 在 `packages/ui` 中创建 `.env` 文件并指定 `VITE_PORT`(参考 `.env.example`)
|
||
- 在 `packages/server` 中创建 `.env` 文件并指定 `PORT`(参考 `.env.example`)
|
||
- 运行
|
||
|
||
```bash
|
||
pnpm dev
|
||
```
|
||
|
||
任何代码更改都会自动重新加载应用程序,访问 [http://localhost:8080](http://localhost:8080)
|
||
|
||
## 🌱 环境变量
|
||
|
||
Flowise 支持不同的环境变量来配置您的实例。您可以在 `packages/server` 文件夹中的 `.env` 文件中指定以下变量。了解更多信息,请阅读[文档](https://github.com/FlowiseAI/Flowise/blob/main/CONTRIBUTING.md#-env-variables)
|
||
|
||
## 📖 文档
|
||
|
||
[Flowise 文档](https://docs.flowiseai.com/)
|
||
|
||
## 🌐 自托管
|
||
|
||
在您现有的基础设施中部署自托管的 Flowise,我们支持各种[部署](https://docs.flowiseai.com/configuration/deployment)
|
||
|
||
- [AWS](https://docs.flowiseai.com/deployment/aws)
|
||
- [Azure](https://docs.flowiseai.com/deployment/azure)
|
||
- [Digital Ocean](https://docs.flowiseai.com/deployment/digital-ocean)
|
||
- [GCP](https://docs.flowiseai.com/deployment/gcp)
|
||
- <details>
|
||
<summary>其他</summary>
|
||
|
||
- [Railway](https://docs.flowiseai.com/deployment/railway)
|
||
|
||
[](https://railway.app/template/pn4G8S?referralCode=WVNPD9)
|
||
|
||
- [Render](https://docs.flowiseai.com/deployment/render)
|
||
|
||
[](https://docs.flowiseai.com/deployment/render)
|
||
|
||
- [HuggingFace Spaces](https://docs.flowiseai.com/deployment/hugging-face)
|
||
|
||
<a href="https://huggingface.co/spaces/FlowiseAI/Flowise"><img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg" alt="HuggingFace Spaces"></a>
|
||
|
||
- [Elestio](https://elest.io/open-source/flowiseai)
|
||
|
||
[](https://elest.io/open-source/flowiseai)
|
||
|
||
- [Sealos](https://template.sealos.io/deploy?templateName=flowise)
|
||
|
||
[](https://template.sealos.io/deploy?templateName=flowise)
|
||
|
||
- [RepoCloud](https://repocloud.io/details/?app_id=29)
|
||
|
||
[](https://repocloud.io/details/?app_id=29)
|
||
|
||
</details>
|
||
|
||
## ☁️ 云托管
|
||
|
||
[开始使用云托管](https://flowiseai.com/)
|
||
|
||
## 🙋 支持
|
||
|
||
在[讨论区](https://github.com/FlowiseAI/Flowise/discussions)中随时提问、提出问题和请求新功能
|
||
|
||
## 🙌 贡献
|
||
|
||
感谢这些了不起的贡献者
|
||
|
||
<a href="https://github.com/FlowiseAI/Flowise/graphs/contributors">
|
||
<img src="https://contrib.rocks/image?repo=FlowiseAI/Flowise" />
|
||
</a>
|
||
|
||
参见[贡献指南](CONTRIBUTING-ZH.md)。如果您有任何问题或问题,请在[Discord](https://discord.gg/jbaHfsRVBW)上与我们联系。
|
||
|
||
## 📄 许可证
|
||
|
||
此代码库中的源代码在[Apache License Version 2.0 许可证](../LICENSE.md)下提供。
|