Serpenta Developer Handbook 1.0 Help

Tauri Starter Kit

Serpenta was decoupled from its original Tauri middleware to support different implementations and tech stacks. If you choose to use Tauri, we provide a Tauri starter kit in the form of an npm binary that creates a project with the required packages, Tauri and all middleware implemented.

The project is situated under the packages folder of the Serpenta monorepo. It has the entire folder structure in its child template folder. Upon execution of the script, these will be synced to a child folder of the one where this binary is run.

While the setup provides some examples of how one can render data and fetch it from the Tauri backend, the implementation of the communication middleware is left for the developer. For ideas, you can look at the DH08's Serpenta GUI.

Installing & setup

You can create a new Serpenta project using its npm binary like so:

npx @delft-hyperloop/create-serpenta-app [name] cd [name] direnv allow # optional if you use nix flakes npm i # install dependencies npm run tauri dev # run the tauri app

This will create a template directory with SvelteKit, Tauri setup together with a predefined configuration for Serpenta.

Features

Upon installation, the Tauri starter kit will provide you with all of these features (which normally are left for own custom configuration) implemented:

  • A Data Distributor.

  • Windowing Engine

  • Command Invoker

Last modified: 28 August 2024