Rhon Joe 94a650475d improve: menu collapse readability (#4099) 11 months ago
..
.husky 7753ba2d37 FEAT: NEW WORKFLOW ENGINE (#3160) 1 year ago
.vscode a838ba7b46 Chore/ignore vscode setting (#293) 1 year ago
app 94a650475d improve: menu collapse readability (#4099) 11 months ago
assets bf3ee660e0 fix: missing files (#2291) 1 year ago
bin fec607db81 Feat/embedding (#553) 1 year ago
config 9eebe9d54e fix: workflow node variable (#3743) 11 months ago
context c5e2659771 Feat/install process refinement (#3982) 11 months ago
docker ffc60bb917 add the comment in entrypoint.sh (#3882) 11 months ago
hooks c0476c7881 Feat: frontend support timezone of timestamp (#4070) 11 months ago
i18n f68b6b0e5e Fix typo: writeOpner -> writeOpener (#4060) 11 months ago
models f257f2c396 Knowledge optimization (#3755) 11 months ago
public 7753ba2d37 FEAT: NEW WORKFLOW ENGINE (#3160) 1 year ago
service ff67a6d338 feat: llm text stream support for workflow app (#3798) 11 months ago
types f257f2c396 Knowledge optimization (#3755) 11 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) 11 months 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 93393e005e version to 0.6.6 (#4050) 11 months ago
postcss.config.js db896255d6 Initial commit 1 year ago
tailwind.config.js a9d1b4e6d7 feat: create app show agent type tip (#2207) 1 year ago
tsconfig.json db896255d6 Initial commit 1 year ago
typography.js db896255d6 Initial commit 1 year ago
yarn.lock ecb51a83d4 chore(deps): bump semver from 5.7.1 to 5.7.2 in /web (#4022) 11 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.