Simple boilerplate for Tauri 2 with Svelte 5 (and shadcn-svelte).
In order to run this boilerplate, you need to install Node (via nvm) and Rust. If you are on Windows I also recommend installing MSVC before the other dependencies (make sure to check the "Desktop development with C++" workload).
Some useful links:
- https://github.com/coreybutler/nvm-windows/releases (Windows: pick the nvm installer)
- https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating (Linux: run
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
) - https://www.rust-lang.org/tools/install
- https://visualstudio.microsoft.com/vs/community/
- Click the "Use this template" button on GitHub.
- Clone your newly created repository:
git clone https://github.com/YOUR_USERNAME/YOUR_REPOSITORY_NAME.git cd YOUR_REPOSITORY_NAME
- Install dependencies:
npm i
npm run tauri dev
npm run tauri build
npx shadcn-svelte@next add <component>
Replace <component>
with the name of the component you want to add (e.g., button, card, dialog). You can find the full list of available components at https://next.shadcn-svelte.com/docs/components.
https://next.shadcn-svelte.com/
This project is licensed under the MIT License - see the LICENSE file for details.