Skip to content
Tauri

Develop

1. Start Your Dev server

Now that you have everything set up, you should start your application development server provided by your UI framework or bundler (assuming you’re using one, of course). If you followed our guides you will have beforeDevCommand configured to do this for you in step 2.

2. Start Tauri Development Window

npm run tauri dev

The first time you run this command, the Rust package manager may need several minutes to download and build all the required packages. Since they are cached, subsequent builds are much faster, as only your code needs rebuilding.

Once Rust has finished building, the webview opens, displaying your web app. You can make changes to your web app, and if your tooling enables it, the webview should update automatically, just like a browser. When you make changes to your Rust files, they are rebuilt automatically, and your app automatically restarts.

Note that Tauri’s APIs only work in your app windows, so once you start using them you won’t be able to open your frontend in your system’s browser anymore.


© 2024 Tauri Contributors. CC-BY / MIT