This project will no longer receive any updates. Instead you should use the yarn create tauri-app
command and select Clojurescript. This will use the following template: https://github.com/filipesilva/create-cljs-app
Clojurescript template for using Tauri, a tool for building desktop application using web technology.
This template currently includes re-frame. It also has a small example on how you can open a file selector dialog, and read a file from your file system using the Tauri API.
- Read the Tauri setup guide
- Latest version of Node
- Yarn package manager (alternatively, npm)
lein new tauri-cljs my-awesome-app
cd my-awesome-app
yarn deps
In order to run Tauri in development, you need to start a webserver that serves HTML. In our case we will use shadow-cljs. Open a terminal window and run the following command to start shadow-cljs.
yarn watch
Next we want to open a Tauri window. Tauri and Shadow-cljs are configured to port 3449 by default. Shadow-cljs will serve assets from that port, and Tauri will listen. Open another terminal and run the following command to start Tauri.
yarn tauri dev
Make sure you have the latest version of Node, Tauri requires a very recent version.