Skip to content

Latest commit

 

History

History

client-java

Sync Client Example: using the Java SDK in a command line application

This example shows how to use the Sync client using the Java SDK in a JVM console application.

  • See Task on how to define a simple entity
  • See TasksSyncDB on how to set up Sync and perform basic database operations with Task

Setup

Note

This project is set up both as a default Gradle multi-project build and a Maven build.

IntelliJ IDEA

  1. Open this directory. Choose to open as Gradle or Maven project. In any case, the project should sync and is then ready to build.

  2. To build and run the application, run Main.java.

Other IDEs or from the command line

  1. Open this directory.

  2. To build and run the application, run the following command:

Using Gradle:

./gradlew run

Using Maven:

./mvnw compile exec:java

Documentation