Hanqing Zhao 8e2f8ffb9e Modify docs in JP (#5185) 10 months ago
..
.husky f32b440c4a chore: fix indention violations by applying E111 to E117 ruff rules (#4925) 10 months ago
.vscode 4308a79e89 fix: revision styles for workflow (#4087) 10 months ago
app e68d1b88de Fix: conversation id display & support copy (#5195) 10 months ago
assets bf3ee660e0 fix: missing files (#2291) 1 year ago
bin fec607db81 Feat/embedding (#553) 1 year ago
config efecdccf35 feat: support login by given mail (#4991) 10 months ago
context 37f292ea91 feat: model load balancing (#4926) 10 months ago
docker ffc60bb917 add the comment in entrypoint.sh (#3882) 11 months ago
hooks d1ccb22d8a feat: Use Romanian & other langs in QA (#4205) 11 months ago
i18n 8e2f8ffb9e Modify docs in JP (#5185) 10 months ago
models 96460d5ea3 feat: document support rename in in dataset (#4732) 10 months ago
public 7753ba2d37 FEAT: NEW WORKFLOW ENGINE (#3160) 1 year ago
service 37f292ea91 feat: model load balancing (#4926) 10 months ago
types 45deaee762 feat: workflow new nodes (#4683) 10 months ago
utils 8bb225bec6 fix: number type in app would render as select type in webapp (#3244) 1 year 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 5f7321ea28 feat: Added the mirror of Aliyun's Linux apk installation package and updated the deprecated taobao npm mirror address to npmmirror (#3459) 1 year ago
README.md 8bca908f15 refactor: config file (#3852) 11 months ago
global.d.ts 7bbe12b2bd feat: support assistant frontend (#2139) 1 year ago
next.config.js 8746e48df0 chore: integrate code-inspector-plugin (#3900) 11 months ago
package.json f7dd327bc2 version to 0.6.10 (#4929) 10 months ago
postcss.config.js db896255d6 Initial commit 1 year ago
tailwind.config.js 37f292ea91 feat: model load balancing (#4926) 10 months ago
tsconfig.json db896255d6 Initial commit 1 year ago
typography.js db896255d6 Initial commit 1 year ago
yarn.lock 45deaee762 feat: workflow new nodes (#4683) 10 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.