Skip to content

Rust Backend Setup

Prerequisites

Before setting up the frontend, ensure you have the following installed:

For a comprehensive guide on prerequisites, refer to the Tauri Prerequisites documentation.

Setup Directory

Base Directory

All commands executed below are with respect to the frontend/ directory

Installing Dependencies

  1. Navigate to the frontend directory:

    cd frontend
    

  2. Install the project dependencies:

    npm install
    

For more information on npm commands, see the npm documentation.

Running the Application

To start the Tauri application in development mode, run:

npm run tauri dev

This command will: - Start the Vite development server for the frontend - Compile the Rust backend - Launch the Tauri application window

For more details on Tauri commands, check the Tauri CLI documentation.

First Run

The first run might take longer as it needs to compile the Rust code.