Digu uses the framework Svelte and SvelteKit for developing the web application, and uses Tauri which build a desktop app from the source for a web app.
Do the following steps/commands depending on what you want to do:
- Installation
- Starting a development server
- Building the application
- Testing
- Quality Checks
- Accessing the database
Run the following command to install the necessary dependencies:
npm installBuild web/desktop application for development using the following scripts.
-
For the WEB application:
npm run dev
This launches the development server and compiles the web application.
-
For the WEB and DESKTOP application:
npm run tauri dev
This works the same as
npm run dev, plus compiles the desktop application.
Build web/desktop application for deployment using the following scripts.
-
For the WEB application:
npm run build
-
For the WEB and DESKTOP application:
npm run tauri build
The deploy directories are:
Application Path from the root Web ./_buildDesktop ./src-tauri/target/release
Execute tests using the following scripts.
-
To run all unit tests:
npm run vitest
-
To run all unit tests with coverage:
npm run vitest:coverage
-
To run all unit tests and display their results on the UI with coverage:
npm run vitest:ui
-
To run all E2E tests:
npm run playwright-test
Perform quality checks and maintenance tasks:
- To check the code and perform formatting:
npm run check
- To watch for changes and perform checks:
npm run check:watch
- To lint and format the code:
npm run lint npm run format
- To print out all the unused exports in the source files
npm run find-deadcode
If you are curious about how your settings and event logs are sotred in the database, use developer tools to access and view them.
⚠ CAUTION ⚠
NEVER EDIT THE VALUES ON THE DATABASE with developer tools. It could cause Digu to stop working.
The Steps:
-
Open the app
Open Digu. Either the web/desktop app can be used. -
Open
developer tools
Press following keys to opendeveloper tools:OS Pressing Keys Windows/Linux Ctrl + Shift + i macOS Cmd + Option + i -
Select the tab that displays IndexedDB
Browser Tab Name Chrome/Edge ApplicationFirefox Storage -
Access IndexedDB
Look forStoragein the left panel, and click it to expand. Then you can see the database for Digu.
All database names for Digu begin withDigu_.

