Skip to main content

Prerequisites

Ditto’s C++ Console App Quickstart supports Linux only. Before getting started, ensure you have the following:

Get Started

1. Clone the Repository

2. Configure Ditto

Get Ditto Database ID, Playground Token, and Auth URL

Add Ditto Credentials

  1. Copy the .env.sample file at the top level of the quickstart repo to .env and add your app ID and online playground token.
  2. Update the .env file with the Database ID and Playground Token from your Ditto Database
  1. Navigate to the sdk subdirectory of the project directory
  2. Download Ditto.tar.gz and unpack an archive containing the libditto.a static library and Ditto header.

3. Run the Application

  1. Navigate back to the project directory
  2. Build the application
  3. Run the application

4. Sync-Data Offline

Next Steps

All the Ditto Quickstart apps works together! Try running a quickstart app in other languages and see them all collaborate.

Additional Resources