Tauri Svelte Template screenshot

Tauri Svelte Template

Author Avatar Theme by Happybeing
Updated: 28 Nov 2020
33 Stars

A quick start template for Tauri apps using Sveltejs

Overview

The Tauri + Svelte App Template is a quick-start template for creating a Tauri app using Sveltejs. It is based on the Svelte template and allows users to easily set up their development environment.

Features

  • Easy integration of Tauri and Sveltejs.
  • Configurable app settings through the config.json and src-tauri/tauri.config.json files.
  • Seamless development experience with automatic dependency installation and building.

Installation

To install the Tauri + Svelte App Template, follow these steps:

  1. Go to the Tauri website at https://tauri.studio and set up Tauri for your operating system.
  2. Ensure that yarn is installed on your system if you want to follow the instructions verbatim.
  3. Create a throwaway test project using the following command to check if Tauri is working:
    yarn tauri info
    
    If Tauri is not working, the command above might provide helpful information.
  4. Create a new Tauri + Svelte project using the template.
  5. Edit the config.json and src-tauri/tauri.config.json files to configure your app.
  6. Install the project dependencies and start your Svelte development server by running the following command:
    yarn install && yarn dev
    
  7. In another console, start the Tauri development environment:
    yarn tauri dev
    
    You should see your Tauri app window displaying the Svelte “Hello World” app. This might take some time during the first run as dependencies are downloaded and built.

Summary

The Tauri + Svelte App Template provides a convenient starting point for creating Tauri apps with Sveltejs. It simplifies the setup process and allows for easy configuration of app settings. By integrating Tauri and Sveltejs, developers can create powerful cross-platform applications with a seamless development experience.