Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 anos atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # 贡献
  2. 感谢您对 [Dify](https://dify.ai) 的兴趣,并希望您能够做出贡献!在开始之前,请先阅读[行为准则](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT.md)并查看[现有问题](https://github.com/langgenius/dify/issues)。
  3. 本文档介绍了如何设置开发环境以构建和测试 [Dify](https://dify.ai)。
  4. ### 安装依赖项
  5. 您需要在计算机上安装和配置以下依赖项才能构建 [Dify](https://dify.ai):
  6. - [Git](http://git-scm.com/)
  7. - [Docker](https://www.docker.com/)
  8. - [Docker Compose](https://docs.docker.com/compose/install/)
  9. - [Node.js v18.x (LTS)](http://nodejs.org)
  10. - [npm](https://www.npmjs.com/) 版本 8.x.x 或 [Yarn](https://yarnpkg.com/)
  11. - [Python](https://www.python.org/) 版本 3.10.x
  12. ## 本地开发
  13. 要设置一个可工作的开发环境,只需 fork 项目的 git 存储库,并使用适当的软件包管理器安装后端和前端依赖项,然后创建并运行 docker-compose 堆栈。
  14. ### Fork存储库
  15. 您需要 fork [存储库](https://github.com/langgenius/dify)。
  16. ### 克隆存储库
  17. 克隆您在 GitHub 上 fork 的存储库:
  18. ```
  19. git clone git@github.com:<github_username>/dify.git
  20. ```
  21. ### 安装后端
  22. 要了解如何安装后端应用程序,请参阅[后端 README](api/README.md)。
  23. ### 安装前端
  24. 要了解如何安装前端应用程序,请参阅[前端 README](web/README.md)。
  25. ### 在浏览器中访问 Dify
  26. 最后,您现在可以访问 [http://localhost:3000](http://localhost:3000) 在本地环境中查看 [Dify](https://dify.ai)。
  27. ## 创建拉取请求
  28. 在进行更改后,打开一个拉取请求(PR)。提交拉取请求后,Dify 团队/社区的其他人将与您一起审查它。
  29. 如果遇到问题,比如合并冲突或不知道如何打开拉取请求,请查看 GitHub 的[拉取请求教程](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests),了解如何解决合并冲突和其他问题。一旦您的 PR 被合并,您将自豪地被列为[贡献者表](https://github.com/langgenius/dify/graphs/contributors)中的一员。
  30. ## 社区渠道
  31. 遇到困难了吗?有任何问题吗? 加入 [Discord Community Server](https://discord.gg/AhzKf7dNgk),我们将为您提供帮助。
  32. ### 多语言支持
  33. 需要参与贡献翻译内容,请参阅[前端多语言翻译 README](web/i18n/README_CN.md)。