Skip to content

A sample application that demonstrates how to integrate a database backend into a Tauri application.

Notifications You must be signed in to change notification settings

pgenfer/umlboard-tauri-local-storage

Repository files navigation

Moving from Electron to Tauri Part 2 - Local Data Storage

This small sample application is the second part of a blog series investigating how some of UMLBoard's core concepts can be ported to Tauri. UMLBoard uses a layered architecture with a repository layer to decouple the application logic from the database.

UMLBoard's Architecture consits of three layers. The application layer uses a repository to access the database.

In this project, we're investigating how we could implement such a layered architecture with Tauri and Rust by using two different database backends, SurrealDB and BonsaiDB.

The project uses the React+Tauri+Vite template with additional dependencies to the Redux Toolkit.

Building the Sample Application

To build and run the app, use the following command

npm run tdev

This will first build the React front end and afterwards build and run the Tauri application.

Debugging

To debug the application, run the Tauri Development Debug task via the VS Code debugger.

Debugging the front can be done via the Front-end App Debug task, but please note that this does currently only work under Windows.

Recommended IDE Setup

About

A sample application that demonstrates how to integrate a database backend into a Tauri application.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published