Taulixir is a sample project demonstrating how to integrate a Tauri desktop application with an Elixir-powered backend.
Demo: A Svelte-based counter UI provides buttons to increase, decrease, and refresh a counter. User actions are routed via Erlang RPC requests to an Elixir backend sidecar, which then returns the updated counter value to the UI for display.
Ensure the following are installed on your system:
-
Navigate to the Elixir project directory:
cd ./midway -
Build the release:
MIX_ENV=prod mix release
Once the Elixir build is complete:
-
Run the included script to adjust the generated Elixir build output to match Tauri’s sidecar naming conventions:
./adjust_midway.sh
This script modifies the
midway.batand generates a correctly named and adjustedmidway-{targetTriple}binary in midway/_build/prod/rel/midway/bin from the originalmidwaybinary. This ensures Tauri automatically includes it during the build process. For more details on the required naming conventions, please refer to the Tauri sidecar documentation. -
Update the
plugins.erl-rpcvariables in tauri.conf.json. You can find the cookie value in COOKIE
Navigate to the app subfolder and start the Tauri application in development mode by running:
cargo tauri dev- This build has been tested on Linux, so platform-specific configurations or adjustments may be necessary for macOS or Windows.
- Mobile support has been minimally tested and has not worked so far.