Linux Console Application - Runs on modern Linux distributions with full Ditto sync capabilities:
- ✅ Linux (x64): Ubuntu 20.04 LTS and later
- ✅ Linux (AArch64): Ubuntu 22.04 LTS and later
After you have completed the common prerequisites you will need the following:
- A C++ compiler (clang or gcc)
- CMake 3.10 or later
- Make
- Linux operating system (Ubuntu 20.04+ recommended)
The build system will automatically download the Ditto C++ SDK when you run make build on Linux. No manual SDK installation is required!
Assuming you have the prerequisites installed, you can build and run the app by following these steps:
- Create an application at https://portal.ditto.live/. Make note of the app ID and online playground token.
- Copy the
.env.samplefile at the top level of thequickstartrepo to.envand add your app ID and online playground token. - In a shell, navigate to the
quickstart/cpp-tui/taskscppdirectory and run the commandmake buildto automatically download the Ditto SDK and build the C++ application.
The build system will detect your Linux architecture (x86_64/arm64) and download the appropriate Ditto C++ SDK version automatically.
The application is named taskscpp and is located in the quickstart/cpp/taskscpp/build directory.
You can run the application and see the available command-line options from the
quickstart/cpp-tui/taskscpp directory by running this command:
./build/taskscpp --helpIf you run the application without any arguments, it will start running in a terminal UI mode, displaying the available tasks in a list. You can use these keys to control the UI:
- Down arrow or
j: Move down in the list - Up arrow or
k: Move up in the list Space,Return, orEnter: Toggle the completion status of the selected taske: Edit the title of the selected taskd: Delete the selected taskc: Create a new tasks: Toggle Ditto synchrohnization on/offq: Quit the application
If you run the QuickStart Tasks app on other devices, the data will be synced between them.