A production-ready template to build fast, secure desktop apps with Tauri and Vue.
- Vue 3 + TypeScript - Type-safe frontend with devtools
- Tailwind 4 - CSS preconfigured for native app development
- Vite - Fast builds with AutoImport for cleaner code
- Vitest - Unit testing ready to go
- CI/CD included - GitHub Actions for automated testing, builds, and releases
- VS Code ready - Debugging configs and recommended extensions
- Install Tauri prerequisites
- Clone and install dependencies:
pnpm i- Run the development server (starts both the backend and frontend dev servers and opens the devtools):
pnpm tauri devA Tauri app has two processes:
- Core Process (
backend, or main process in Electron terminology) - WebView process (
frontend, renderer in Electron)
Frontend code lives in src/. See package.json for all available commands.
Testing:
pnpm testBackend code lives in src-tauri/.
Finding outdated dependencies (requires cargo-outdated):
cd src-tauri && cargo outdatedUpgrading dependencies (requires cargo-edit):
cd src-tauri && cargo upgrade- The
devcommand has by defaultRUST_BACKTRACE=1set which makes Rust output full backtraces to the console. (Remove it from thepackage.jsoncommand if you don't want it). - If you use VS Code, you can debug Rust code with the included
Debug Tauriconfig.
The project has GitHub Actions set up which will automatically test and build your app with every push and PR. To build manually run:
pnpm tauri build- Bump version number by running
pnpm bump [x.y.z] - Run
pnpm checkto updateCargo.lock - Tag the commit you want to release with
vX.Y.Z - Edit the release notes and push (also tags!)
- Github workflow will automatically build a new draft release for this version. Publish when ready 🎉
- Follow @uninen on X or uninen.net on Bluesky
- Read my learnings around Tauri / Vue / TypeScript and other Web dev topics from my Today I Learned blog
- If you speak Finnish, check out Koneoppiblogi
Contributions are welcome! Please be nice when interacting with others.
