This updates project metadata/scripts for desktop builds, adds Tauri app files, refreshes release artifacts, and improves results preview handling for structured and think-tagged responses. Made-with: Cursor
1.1 KiB
1.1 KiB
Dify Batch Tester
A simple web app for batch testing prompts/workflows.
Requirements
- Node.js 18+
Local Development
- Install dependencies:
npm install - Create local env file:
cp .env.example .env.local - Update
.env.localwith your keys/values:GEMINI_API_KEYAPP_URL
- Start the dev server:
npm run dev - Open: http://localhost:3000
Scripts
npm run dev- start development servernpm run build- build for productionnpm run preview- preview production buildnpm run desktop:dev- start the Tauri desktop app in developmentnpm run desktop:build- build the Tauri desktop appnpm run lint- run TypeScript checks
Desktop App
This project includes a Tauri v2 wrapper in src-tauri/.
Before running the desktop app, install the Tauri system prerequisites for your OS: Tauri prerequisites.
On macOS, that includes Rust/Cargo and Xcode command line tools. After prerequisites are installed:
npm install
npm run desktop:dev
To create a desktop bundle:
npm run desktop:build