Uses Temporal's API Protobufs and a Gradle plugin to compile at build time.
- Create an API key in Temporal Cloud first. See the API docs above for instructions.
- Set a
TEMPORAL_CLOUD_API_KEY
environment variable to your API key. - To create a new namespace, set a
TEMPORAL_CA_CERT_CONTENTS
to your CA certificate contents.- You can trigger a namespace creation by appending
/create-namespace
to your url - See
createNamespace()
incontrollers/TestController.kt
for defaults used to create the namespace
- You can trigger a namespace creation by appending
- To set permissions for a namespace, you can click the Read / Write / Admin links next to each user.
- Set a
TEMPORAL_NAMESPACE
environment variable to the namespace you want to set permissions for (example:default.acctid
).
- Set a
- Run the server:
./gradlew -q bootRun -PmainClass=com.example.demo.DemoApplicationKt
Then visit http://localhost:8080/
to see a list of users and namespaces for your Temporal Cloud account.