This is a quick-start template for creating a Tauri app using Sveltejs, based on the Svelte template at https://github.com/sveltejs/template.
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 new Tauri + Svelte project using
npx degit happybeing/tauri-svelte-template svelte-app
cd svelte-app
- Edit the
config.json
andsrc-tauri/tauri.config.json
files to configure your app.
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.
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.
Everything is GPL3.0 unless otherwise stated. Any contributions are accepted on the condition they conform to this license.
See also ./LICENSE