This demo uses the following Temporal SDKs:
git clone https://github.com/temporalio/docker-compose.git
cd docker-compose
docker compose upcd position-go
go run worker/main.gocd position-java
mvn compile exec:java -Dexec.mainClass="io.temporal.demo.pendulum.position.Starter"If running for the first time:
cd position-node
nvm use
npm install
npm startFor consecutive runs:
cd position-node
npm startIf running for the first time:
cd position-php
composer install
composer update
./rr serveFor consecutive runs:
cd position-php
./rr servecd game
mvn compile exec:java -Dexec.mainClass="io.temporal.demo.pendulum.Pendulum"Within the game you can change the positioning implementations by clicking the buttons on the right.
Notice how the state of the pendulum (position, acceleration, movement) is preserved once you switch from one workflow to another.
