自托管部署包含四个关键步骤:
- Get Code::
通过git克隆仓库git clone https://github.com/stvlynn/flashcard.git
cd flashcard - Installation of dependencies::
fulfillmentnpm install
安装Node.js依赖包 - Configuration Keys::
在项目根目录创建.env文件,需配置:VITE_DIFY_API_KEY=您的Dify平台API密钥
VITE_DIFY_API_URL=工作流终端地址 - Starting services::
(of a computer) runnpm run dev
Starting the Development Server
Caveats:
- 需提前在Dify平台创建学习工作流,导入项目提供的dify-config.yml配置文件
- 推荐使用Node.js 16+版本运行环境
- 生产环境部署需额外配置Nginx等Web服务器
This answer comes from the articleFlashcard: a word flashcard foreign language learning tool built on Dify, replacing Duolingo.The