Skip to content

Desktop

Building and testing the desktop app in debug mode requires significantly more resources than the Docker version. Nevertheless, in some situations, it may make sense to test your development primarily against the desktop version.

I recommend having more than 16 GB of RAM, since the app uses around 8 GB in debug mode and the IDE (such as RustRover or VSCodium) also uses about 6–8 GB.

The code consists of the following components:

  1. /backend/, or more precisely, /backend/core for the business logic and /backend/tauri-src for the tauri app

  2. /frontend/looksyk for the Angular frontend

To develop the app effectively, I recommend running the frontend and backend in debug mode. This ensures the source code is not optimized, but rather executed exactly as written. This makes debugging easier, as stack traces are more comprehensible and breakpoints can be set easily.

Please note that running in debug mode causes a significant performance drop in both the frontend and the backend. The performance observed in this mode does not reflect actual Looksyk performance. If you want to test performance, be sure to also test against production mode.

When testing the app, it is recommended to start both the backend and frontend components in debug mode.

The following are required as build dependencies:

  • git to checkout the code from codeberg

  • cargo to build the backend

  • npm to build the frontend

First, the code must be checked out:

Terminal window
git clone https://codeberg.org/SebastianRzk/Looksyk

Then, it is recommended to install the frontend dependencies:

Terminal window
cd frontend/looksyk
npm i
npm install -g @angular/cli
cd ../..
cargo install tauri-cli --version "^2.0.0"

Looksyk can now be started.

  • The frontend is started as follows (for linux development hosts):
Terminal window
cd frontend/looksyk
ng serve --configuration tauri-desktop-development
  • For linux production builds:
Terminal window
cd frontend/looksyk
ng serve --configuration tauri-desktop-production
  • For windows production builds:
Terminal window
cd frontend/looksyk
ng serve --configuration tauri-windows-production
  • The backend is started as follows:
Terminal window
cd backend/src-tauri
cargo tauri dev

A window with Looksyk in debug mode should open.