The Benchttp desktop app is a GUI for benchttp/engine.
Download from the releases page.
Or build from source (see below).
For an optimal developping experience, use the workspace version of Typescript. This allows typescript-plugin-css-modules to autocomplete SCSS class names.
Node.js, Rust and Tauri. Follow this guide to set up Tauri environment.
Install dependencies.
npm installBuild local runner:
npm run sidecar:build
# build output is in src-tauri/bin/benchttp-server-<target-triple>Note: script sidecar:build is run inside scripts predev and prebuild.
npm run devWhen running in the browser (i.e. not in the Tauri app window), Tauri APIs are not available. API @tauri-apps/api/shell cannot be used to interact with a sidecar program. Instead, run the engine on a local server.
# start the dev server
npm run web:dev# start the engine in another terminal
npm run sidecar:runnpm run buildBundles are available at ./src-tauri/target/release/bundle.