You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

пре 2 година
пре 2 година
пре 2 година
пре 2 година
пре 2 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Contributing
  2. Thanks for your interest in [Dify](https://dify.ai) and for wanting to contribute! Before you begin, read the
  3. [code of conduct](https://github.com/langgenius/.github/blob/main/CODE_OF_CONDUCT.md) and check out the
  4. [existing issues](https://github.com/langgenius/langgenius-gateway/issues).
  5. This document describes how to set up your development environment to build and test [Dify](https://dify.ai).
  6. ### Install dependencies
  7. You need to install and configure the following dependencies on your machine to build [Dify](https://dify.ai):
  8. - [Git](http://git-scm.com/)
  9. - [Docker](https://www.docker.com/)
  10. - [Docker Compose](https://docs.docker.com/compose/install/)
  11. - [Node.js v18.x (LTS)](http://nodejs.org)
  12. - [npm](https://www.npmjs.com/) version 8.x.x or [Yarn](https://yarnpkg.com/)
  13. - [Python](https://www.python.org/) version 3.10.x
  14. ## Local development
  15. To set up a working development environment, just fork the project git repository and install the backend and frontend dependencies using the proper package manager and create run the docker-compose stack.
  16. ### Fork the repository
  17. you need to fork the [repository](https://github.com/langgenius/dify).
  18. ### Clone the repo
  19. Clone your GitHub forked repository:
  20. ```
  21. git clone git@github.com:<github_username>/dify.git
  22. ```
  23. ### Install backend
  24. To learn how to install the backend application, please refer to the [Backend README](api/README.md).
  25. ### Install frontend
  26. To learn how to install the frontend application, please refer to the [Frontend README](web/README.md).
  27. ### Visit dify in your browser
  28. Finally, you can now visit [http://localhost:3000](http://localhost:3000) to view the [Dify](https://dify.ai) in local environment.
  29. ## Create a pull request
  30. After making your changes, open a pull request (PR). Once you submit your pull request, others from the Dify team/community will review it with you.
  31. Did you have an issue, like a merge conflict, or don't know how to open a pull request? Check out [GitHub's pull request tutorial](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests) on how to resolve merge conflicts and other issues. Once your PR has been merged, you will be proudly listed as a contributor in the [contributor chart](https://github.com/langgenius/langgenius-gateway/graphs/contributors).
  32. ## Community channels
  33. Stuck somewhere? Have any questions? Join the [Discord Community Server](https://discord.gg/AhzKf7dNgk). We are here to help!