https://github.com/temporalio/hello-world-project-template-java
https://github.com/temporalio/hello-world-project-template-java
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/temporalio/hello-world-project-template-java
- Owner: temporalio
- License: mit
- Created: 2020-09-30T15:36:03.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-06-06T17:14:30.000Z (about 1 year ago)
- Last Synced: 2025-06-06T17:38:19.750Z (about 1 year ago)
- Language: Java
- Size: 160 KB
- Stars: 6
- Watchers: 9
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hello World: Java project template
This project can be used as a template to start building your own Temporal Workflow application.
Follow the [Build a "Hello World!" app from scratch tutorial](https://learn.temporal.io/getting_started/java/hello_world_in_java/) to learn more.
This project uses [Snipsync](https://github.com/temporalio/snipsync) comment wrappers to automatically keep code snippets up to date within our documentation.
## How to use the template
To use the template, either download it as a zip file or click "Use Template" to make a copy of it in your own Github account.
## Build the project
Either open the project in IntelliJ, which will automatically build it, or in the project's root directory run:
```
./gradlew build
```
## Run the Workflow
First, make sure the [Temporal development cluster](https://docs.temporal.io/application-development/foundations#run-a-dev-cluster) is running.
To start the Workflow, either run the InitiateHelloWorld class from IntelliJ or from the project root run:
```
./gradlew sayHello
```
To start the Worker, either run the HelloWorldWorker class from IntelliJ or from the project root run:
```
./gradlew startWorker
```