Prerequisites
Following are the minimum requirements that must be met before attempting to install Ditto.- Java Development Kit (JDK) version 17 or later
-
One of the following platforms and architectures:
- Windows x86_64
- Linux x86_64
- macOS arm64 (Apple Silicon)
- Git installed on your machine
- A Ditto Portal account with a configured Ditto Database (see Getting SDK Connection Details)
Get Started
1. Clone the Repository
- Open the terminal
- Clone the repository from GitHub.
git clone https://github.com/getditto/quickstart - Navigate to the project directory:
cd quickstart
2. Configure Ditto
Get Ditto Database ID, Development Token, and Server URL
In the Ditto Portal, open your database and get its Database ID and Development Token. Copy the URL shown under “Connect via SDK” forDITTO_SERVER_URL. See Getting SDK Connection Details for details.
Add Ditto Credentials
- From the
quickstartrepository root, copy.env.sampleto.envand add your database ID, development token, and server URL. - Set these values in
.envusing the connection details for your Ditto Database:
3. Run the Application
- Open a terminal app and navigate to the
java-serverdirectory. - Run the following command to launch the web app:
- Open http://localhost:8080 in a browser to interact with the app.
4. Sync-Data Offline
- Launch the application on multiple devices or simulators
- Disconnect from your current WiFi network while keeping WiFi enabled on the device to allow for LAN connections
- Add, edit, and delete tasks and experience offline collaboration!