Masahiro Yamaguchi 4f60fe7bc6 Fixed wrong /text-to-audio curl example (#5286) před 10 měsíci
..
.husky f32b440c4a chore: fix indention violations by applying E111 to E117 ruff rules (#4925) před 10 měsíci
.vscode 4308a79e89 fix: revision styles for workflow (#4087) před 10 měsíci
app 4f60fe7bc6 Fixed wrong /text-to-audio curl example (#5286) před 10 měsíci
assets bf3ee660e0 fix: missing files (#2291) před 1 rokem
bin fec607db81 Feat/embedding (#553) před 1 rokem
config efecdccf35 feat: support login by given mail (#4991) před 10 měsíci
context 8bcc5a36bb feat: new editor user permission profile (#4435) před 10 měsíci
docker ffc60bb917 add the comment in entrypoint.sh (#3882) před 1 rokem
hooks d1ccb22d8a feat: Use Romanian & other langs in QA (#4205) před 11 měsíci
i18n c03e6ee41b Feat: support delete account (#5208) před 10 měsíci
models 28554350de feat: support firecrawl frontend code (#5226) před 10 měsíci
public 7753ba2d37 FEAT: NEW WORKFLOW ENGINE (#3160) před 1 rokem
service 28554350de feat: support firecrawl frontend code (#5226) před 10 měsíci
types 45deaee762 feat: workflow new nodes (#4683) před 11 měsíci
utils 8bcc5a36bb feat: new editor user permission profile (#4435) před 10 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 1 rokem
.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 5f7321ea28 feat: Added the mirror of Aliyun's Linux apk installation package and updated the deprecated taobao npm mirror address to npmmirror (#3459) před 1 rokem
README.md 8bca908f15 refactor: config file (#3852) před 1 rokem
global.d.ts 7bbe12b2bd feat: support assistant frontend (#2139) před 1 rokem
next.config.js 8746e48df0 chore: integrate code-inspector-plugin (#3900) před 1 rokem
package.json d098bdc59b version to 0.6.11 (#5224) před 10 měsíci
postcss.config.js db896255d6 Initial commit před 1 rokem
tailwind.config.js 37f292ea91 feat: model load balancing (#4926) před 10 měsíci
tsconfig.json db896255d6 Initial commit před 1 rokem
typography.js db896255d6 Initial commit před 1 rokem
yarn.lock c28d709d7f feat: workflow add note node (#5164) před 10 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.