Skip to content

Latest commit

 

History

History
57 lines (36 loc) · 1.26 KB

get-started.md

File metadata and controls

57 lines (36 loc) · 1.26 KB

Developing and Building Carpe

Tauri Svelte apps.

Carpe is based on: https://github.com/jbarszczewski/tauri-svelte-template.

Get started

Dependencies

Install the dependencies...

First Rust:

cd src-tauri/
cargo build

Then Javascript:

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