zxhlyh 23e8043160 fix: prompt editor new line (#6310) před 9 měsíci
..
.husky f9d00e0498 chore: use poetry for linter tools installation and bump Ruff from 0.4 to 0.5 (#6081) před 9 měsíci
.vscode 4c0a31d38b FR: #4048 - Add color customization to the chatbot (#4885) před 9 měsíci
app 23e8043160 fix: prompt editor new line (#6310) před 9 měsíci
assets bf3ee660e0 fix: missing files (#2291) před 1 rokem
bin fec607db81 Feat/embedding (#553) před 1 rokem
config 7305713b97 fix: allow special characters in email (#5327) před 10 měsíci
context ce930f19b9 fix dataset operator (#6064) před 9 měsíci
docker ffc60bb917 add the comment in entrypoint.sh (#3882) před 11 měsíci
hooks e05183c7d2 fix: unnecessory data fetch when swithing apps category on explore page (#5155) před 10 měsíci
i18n c17a4165c1 6282 i18n add support for Italian (#6288) před 9 měsíci
models ce930f19b9 fix dataset operator (#6064) před 9 měsíci
public b07dea836c feat(embed): enhance config and add custom styling support (#5781) před 9 měsíci
service 9a536979ab feat(frontend): workflow import dsl from url (#6286) před 9 měsíci
themes f46792334c chore: remove underscore in util class name and css variable (#6221) před 9 měsíci
types 6ef401a9f0 feat:add tts-streaming config and future (#5492) před 9 měsíci
utils eff280f3e7 feat: tailwind related improvement (#6085) před 9 měsíci
.dockerignore 220f7c81e9 build: fix .dockerignore file (#800) před 1 rokem
.editorconfig db896255d6 Initial commit před 1 rokem
.env.example 8bca908f15 refactor: config file (#3852) před 11 měsíci
.eslintignore 091beffae7 feat: add code style (#242) před 1 rokem
.eslintrc.json 9574730050 Feat/i18n restructure (#2529) před 1 rokem
.gitignore 7bbe12b2bd feat: support assistant frontend (#2139) před 1 rokem
Dockerfile ea29007bc0 fix: apply best practices for the latest buildkit (#5527) před 9 měsíci
README.md 7d5ebbb611 docs(readme): Optimize the content in the readme file (#5364) před 10 měsíci
global.d.ts 7bbe12b2bd feat: support assistant frontend (#2139) před 1 rokem
next.config.js 6ef401a9f0 feat:add tts-streaming config and future (#5492) před 9 měsíci
package.json eabfd84ceb bump to 0.6.14 (#6294) před 9 měsíci
postcss.config.js db896255d6 Initial commit před 1 rokem
tailwind.config.js eff280f3e7 feat: tailwind related improvement (#6085) před 9 měsíci
tsconfig.json db896255d6 Initial commit před 1 rokem
typography.js db896255d6 Initial commit před 1 rokem
yarn.lock 757ceda063 chore(deps): bump braces from 3.0.2 to 3.0.3 in /web (#6098) před 9 měsíci

README.md

Dify Frontend

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Run by source code

To start the web frontend service, you will need Node.js v18.x (LTS) and NPM version 8.x.x or Yarn.

First, install the dependencies:

npm install
# or
yarn install --frozen-lockfile

Then, configure the environment variables. Create a file named .env.local in the current directory and copy the contents from .env.example. Modify the values of these environment variables according to your requirements:

# For production release, change this to PRODUCTION
NEXT_PUBLIC_DEPLOY_ENV=DEVELOPMENT
# The deployment edition, SELF_HOSTED
NEXT_PUBLIC_EDITION=SELF_HOSTED
# The base URL of console application, refers to the Console base URL of WEB service if console domain is
# different from api or web app domain.
# example: http://cloud.dify.ai/console/api
NEXT_PUBLIC_API_PREFIX=http://localhost:5001/console/api
# The URL for Web APP, refers to the Web App base URL of WEB service if web app domain is different from
# console or api domain.
# example: http://udify.app/api
NEXT_PUBLIC_PUBLIC_API_PREFIX=http://localhost:5001/api

# SENTRY
NEXT_PUBLIC_SENTRY_DSN=

Finally, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the file under folder app. The page auto-updates as you edit the file.

Deploy

Deploy on server

First, build the app for production:

npm run build

Then, start the server:

npm run start

If you want to customize the host and port:

npm run start --port=3001 --host=0.0.0.0

Lint Code

If your IDE is VSCode, rename web/.vscode/settings.example.json to web/.vscode/settings.json for lint code setting.

Documentation

Visit https://docs.dify.ai/getting-started/readme to view the full documentation.

Community

The Dify community can be found on Discord community, where you can ask questions, voice ideas, and share your projects.