Skip to content

modship/rust-svelte

Repository files navigation

Tauri + Svelte App Template

This is a quick-start template for creating a Tauri app using Sveltejs, based on the Svelte template at https://github.com/sveltejs/template.

Pre-requisites

Go to https://tauri.studio and set up Tauri for your operating system. Also install yarn if you want to follow the instructions here verbatim.

Check that Tauri is working by creating a throwaway test project:

yarn tauri init

If that doesn't appear to be working, yarn tauri info might give some helpful information.

Create A Tauri + Svelte App

  1. Create a new Tauri + Svelte project using
  npx degit happybeing/tauri-svelte-template svelte-app
  cd svelte-app
  1. Edit the config.json and src-tauri/tauri.config.json files to configure your app.

Development

Install the dependencies and start your Svelte development server:

cd svelte-app
yarn && yarn dev

In another console, start the Tauri development environment:

cd svelte-app
yarn tauri dev

You should see your Tauri app window display the Svelte "Hello World" app. This will take a while to happen the first time you do this, while dependencies are downloaded and built.

Next

This template is just to get your development environment set up. For how to proceed from this point, refer to the Svelte and Tauri websites.

LICENSE

Everything is GPL3.0 unless otherwise stated. Any contributions are accepted on the condition they conform to this license.

See also ./LICENSE

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published