Skip to content

A skeleton multi-platform desktop application built with Tauri and SvelteKit. Use this application as a playground to learn about portable app development with Tauri.

License

Notifications You must be signed in to change notification settings

edonosotti/tauri-sveltekit-playground-app

Repository files navigation

GitHub Workflow (release, master) GitHub Workflow (build, master) Codebeat (master) Code Climate

Tauri + SvelteKit + Flowbite UI Kit playground app

A skeleton multi-platform desktop application built with:

Use this application as a playground to learn about portable app development with Tauri. It was created to complement this article.

Features

  • Routing: src/routes/+page.svelte describes how to configure a router to programmatically switch between components in a Single Page Application
  • Events: src/routes/+page.svelte and src/routes/Info.svelte describe how to create event handlers and dispatch events across multiple components
  • Stores: src/routes/+page.svelte, src/routes/Welcome.svelte and src/routes/Info.svelte describe how to use context and stores to persist the application state across multiple components and dinamically update the rendered view as the stored values get updated
  • App window customization: the tauri.windows section of src-tauri/tauri.conf.json has been customized to set the title, the default size and initial positioning of the application window
  • UI Kit: Flowbite Svelte is used to rapidly design an interface for the application
  • Icons: the Svelte-Heros-v2 icon set is used to improve the appearance of the user interface
  • TypeScript: the code of the components describes how to use TypeScript with SvelteKit

Prerequisites

Quickstart

  1. Start the local development server as described in the Usage paragraph
  2. Check the Flowbite Svelte docs to learn about the components available to build the UI
  3. Check the Tailwind docs to learn about the CSS utility classes that are available to customize the UI
  4. Make some changes to the following files:

Usage

To start the application in development mode, run:

$ npm ci
$ npm run tauri dev

depending on the computational capacity of your computer the first compilation could take a few minutes. Once the development server is started, you will get automated hot-reload and the next starts of the application will be much faster, as long as no new Rust code needs compilation.

Release

To create a release for the current system architecture, run:

$ npm ci
$ npm run tauri build

For more information, check the official docs at: https://tauri.app/v1/guides/building/

Build in CI/CD pipelines

The offical docs offer a tutorial to build apps for multiple targets using GitHub Actions: https://tauri.app/v1/guides/building/cross-platform#tauri-github-action

License

This code is distributed under the MIT license.

Check this Wikipedia page for further details on the license.

EU law notice

Attempting to mandate some baseline security practices to improve the safety of the software distributed in its territory, the EU published a very poorly designed draft of a new law. The draft in its current form threatens the very existence of open source software, making it impractical for independent developers to safely distribute software and code.

I appreciate the intent, but the execution was just terrible. I am writing this note to raise the awarness and encourage everyone to act.

Please read the following articles and support the cause of the independent software development:

About

A skeleton multi-platform desktop application built with Tauri and SvelteKit. Use this application as a playground to learn about portable app development with Tauri.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published