Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.91 KB

File metadata and controls

71 lines (43 loc) · 1.91 KB

Setup & Build Process

Installation

This project uses submodules, so instead of the usual cloning process, you need to use the --recurse-submodules flag:

git clone --recurse-submodules <repo-url>

This ensures that both the main project repository and its submodules are downloaded.


Once the project has been cloned, install all dependencies for both the Vite server and the API using:

npm run install:all

Configuration

Development Mode

To speed up development, a dev mode is available that runs the essential parts of the project—the frontend and the file management server.

Run the following command to start the app in development mode:

npm run dev:all

This will launch both the Vite server and the Nodemon server with the DEBUG environment variable injected into both.

Note: When running the server in development mode, the frontend’s file access API will not be available. To configure the server, update the settings in server/settings.json by specifying the file paths and allowed file types.

Running the Full Application

To run the application outside of debug mode, you need to follow the Tauri prerequisites guide to set up your environment for Windows, macOS, or Linux.

Once you have completed the setup, follow these steps:

  1. Install all dependencies

    npm run install:all
  2. Build the server sidecar

    npm run build:server

    This generates an executable of the server inside the server/dist folder.

  3. Move the server executable to the Tauri binaries folder

    Since Tauri requires a specific naming convention for binaries, use the following command to handle renaming and placement:

    npm run build:server:bin
  4. Run the application

    npm run tauri dev

Now, the full application should be up and running!