Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
John Wang 2e1cd3db28
fix: uuid-ossp extension create failed in pgsql (#10)
vor 2 Jahren
..
constants Initial commit vor 2 Jahren
controllers Initial commit vor 2 Jahren
core Initial commit vor 2 Jahren
docker Initial commit vor 2 Jahren
events Initial commit vor 2 Jahren
extensions Initial commit vor 2 Jahren
libs Initial commit vor 2 Jahren
migrations fix: uuid-ossp extension create failed in pgsql (#10) vor 2 Jahren
models Initial commit vor 2 Jahren
services Initial commit vor 2 Jahren
tasks Initial commit vor 2 Jahren
tests Initial commit vor 2 Jahren
.dockerignore Initial commit vor 2 Jahren
.env.example Initial commit vor 2 Jahren
Dockerfile Initial commit vor 2 Jahren
README.md Initial commit vor 2 Jahren
app.py Initial commit vor 2 Jahren
commands.py Initial commit vor 2 Jahren
config.py Initial commit vor 2 Jahren
requirements.txt Initial commit vor 2 Jahren

README.md

Dify Backend API

Usage

  1. Start the docker-compose stack

The backend require some middleware, including PostgreSQL, Redis, and Weaviate, which can be started together using docker-compose.

   cd ../docker
   docker-compose -f docker-compose.middleware.yaml up -d
   cd ../api
  1. Copy .env.example to .env
  2. Generate a SECRET_KEY in the .env file.
   openssl rand -base64 42
  1. Install dependencies bash pip install -r requirements.txt
  2. Run migrate

Before the first launch, migrate the database to the latest version.

   flask db upgrade
  1. Start backend: bash flask run --host 0.0.0.0 --port=5001 --debug
  2. Setup your application by visiting http://localhost:5001/console/api/setup or other apis…