Skip to content

jbarszczewski/tauri-svelte-template

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

Tauri Svelte App Template

This is a project template for Tauri and Svelte apps. It lives at https://github.com/jbarszczewski/tauri-svelte-template.

To create a new project based on this template follow the official guide here: https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-from-a-template

Get started

Before using template please see Tauri Introduction and follow instructions to setup your environment.

Install the dependencies...

yarn

...then start development server:

yarn tauri dev

This will take care of running both frontend and backend of your app with watch attached to both. That means whenever you change something in src (svelte frontend code) or src-tauri (rust backend code), it will be automatically processed and hot reloaded. To finish dev/debug mode simply close the app window.

Building and running in production mode

To create an optimised version of the app:

yarn tauri build

This will create standalone app and installer in src-tauri/target/release directory.

Useful links