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

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.