Getting Started with ScalarDB by Using Kotlin
This getting started tutorial explains how to configure your preferred database in ScalarDB and set up a basic electronic money application by using Kotlin. Since Kotlin has Java interoperability, you can use ScalarDB directly from Kotlin.
The electronic money application is simplified for this tutorial and isn't suitable for a production environment.
Install a JDK
Because ScalarDB is written in Java, you must have one of the following Java Development Kits (JDKs) installed in your environment:
- Oracle JDK LTS version (8, 11, or 17)
- OpenJDK LTS version (8, 11, or 17)
We recommend using the LTS versions mentioned above, but other non-LTS versions may work.
In addition, other JDKs should work with ScalarDB, but we haven't tested them.
Clone the scalardb
repository
Open a terminal window, and go to your working directory. Then, clone the scalardb repository by running the following command:
$ git clone https://github.com/scalar-labs/scalardb
Then, go to the scalardb/docs/getting-started-kotlin
directory in the cloned repository by running the following command:
$ cd scalardb/docs/getting-started-kotlin