Liking cljdoc? Tell your friends :D

Tauri Clojurescript

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.

Requirements

Setup

lein new tauri-cljs my-awesome-app +example
cd my-awesome-app
yarn deps

Development

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 server assets from that port, and Tauri will listen. Open another terminal and run the following command to start Tauri.

yarn tauri dev

Troubleshooting

Make sure you have the latest version of Node, Tauri requires a very recent version.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close