Skip to content

Sample Tauri desktop application with an Elixir-powered backend

Notifications You must be signed in to change notification settings

grouvie/taulixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Taulixir

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.


Table of Contents


Prerequisites

Ensure the following are installed on your system:


Setup and Installation

Building the Elixir Binary

  1. Navigate to the Elixir project directory:

    cd ./midway
  2. Build the release:

    MIX_ENV=prod mix release

Integrating with Tauri

Once the Elixir build is complete:

  1. 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.bat and generates a correctly named and adjusted midway-{targetTriple} binary in midway/_build/prod/rel/midway/bin from the original midway binary. 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.

  2. Update the plugins.erl-rpc variables in tauri.conf.json. You can find the cookie value in COOKIE

Launching the Application

Navigate to the app subfolder and start the Tauri application in development mode by running:

cargo tauri dev

Notes

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

About

Sample Tauri desktop application with an Elixir-powered backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published