Use the local database in the DatabaseJava example project
To use the local database, two environment variables need to be added to DatabaseJava's local settings file (local.settings.json).
The two variables are:
- "BAAS_CASSANDRA_HOST": "localhost",
- "BAAS_CASSANDRA_PORT": "9042"
The value of the variables must match the host and port that was specified when the database docker container was created.
Once the parameters are set, start the DatabaseJava project and trigger a GET request to the URL /api/v1/database/baseKey1/key1. If everything works, the string "value1" should be returned.