Skip to content

Latest commit

 

History

History
63 lines (50 loc) · 1.3 KB

File metadata and controls

63 lines (50 loc) · 1.3 KB

Configuration

Prerequisites

  • CMake 3.29+
  • C++23 compatible compiler
  • Qt6 (Core, Widgets, Concurrent)
  • OpenSSL
  • libcurl
  • Git (for submodules)

macOS

brew install cmake qt@6 openssl curl

Ubuntu/Debian

sudo apt-get install -y \
  cmake \
  build-essential \
  libgl1-mesa-dev \
  libcurl4-openssl-dev \
  libssl-dev \
  qt6-base-dev \
  libqt6concurrent6 \
  qt6-base-dev-tools

Build Instructions

git clone --recurse-submodules https://github.com/yourusername/storage-crab-desktop.git
cd storage-crab-desktop
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build && make

Configuration

Create a .env file in the project root with backend API URLs:

TOKEN_OBTAIN_URL=https://localhost:8080/api/token/get/
TOKEN_REFRESH_URL=https://localhost:8080/api/token/refresh/
REGISTER_URL=https://localhost:8080/api/users/
ME_URL=https://localhost:8080/api/users/me/ 
UPLOAD_URL=https://localhost:8080/api/files/upload/
GET_FILES_URL=https://localhost:8080/api/files/
DOWNLOAD_URL=https://localhost:8080/api/files/download/
DELETE_URL=https://localhost:8080/api/files/delete/
SHARE_URL=https://localhost:8080/api/files/share/
DOWNLOAD_SHARED_URL=https://localhost:8080/api/files/download/shared/

Running Tests

chmod +x run_tests.sh
./run_tests.sh