Skip to content

benchttp/desktop

Repository files navigation

benchttp desktop

About

The Benchttp desktop app is a GUI for benchttp/engine.

Installation

Download from the releases page.

Or build from source (see below).

Development

IDE Configuration

For an optimal developping experience, use the workspace version of Typescript. This allows typescript-plugin-css-modules to autocomplete SCSS class names.

Prerequisites

Node.js, Rust and Tauri. Follow this guide to set up Tauri environment.

Install dependencies.

npm install

Build 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.

Serve the app

npm run dev

Serve for the browser

When 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:run

Build

npm run build

Bundles are available at ./src-tauri/target/release/bundle.