-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make readme's easier to navigate and read (#80)
* Make table instead of current list of examples * Add download commands to the READMEs * Add patterns to list, and improve typescript readme * Fix links in typescript readme * Improve Readme structures * Fix Readme's for Java and Kotlin examples * Fix bug in readme
- Loading branch information
Showing
19 changed files
with
285 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,24 @@ It also interacts with the delivery services to get the order delivered to the c | |
|
||
![demo_overview.png](demo_overview.png) | ||
|
||
|
||
## Download the example | ||
|
||
- Via the CLI: | ||
```shell | ||
restate example java-food-ordering && cd java-food-ordering | ||
``` | ||
|
||
- Via git clone: | ||
```shell | ||
git clone [email protected]:restatedev/examples.git | ||
cd examples/java/food-ordering | ||
``` | ||
|
||
- Via `wget`: | ||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/java-food-ordering.zip && unzip java-food-ordering.zip -d java-food-ordering && rm java-food-ordering.zip | ||
``` | ||
|
||
## Running locally with Docker compose | ||
|
||
Build the docker containers: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,21 @@ Sample project configuration of a Restate service using the Java interface and H | |
|
||
## Download the example | ||
|
||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/java-hello-world-http.zip && unzip java-hello-world-http.zip -d java-hello-world-http && rm java-hello-world-http.zip | ||
``` | ||
- Via the CLI: | ||
```shell | ||
restate example java-hello-world-http && cd java-hello-world-http | ||
``` | ||
|
||
- Via git clone: | ||
```shell | ||
git clone [email protected]:restatedev/examples.git | ||
cd examples/java/hello-world-http | ||
``` | ||
|
||
- Via `wget`: | ||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/java-hello-world-http.zip && unzip java-hello-world-http.zip -d java-hello-world-http && rm java-hello-world-http.zip | ||
``` | ||
|
||
## Running the example | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,10 +10,21 @@ Sample project configuration of a Restate service using the Java interface and A | |
* [Logging configuration](src/main/resources/log4j2.properties) | ||
|
||
## Download the example | ||
|
||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/java-hello-world-lambda.zip && unzip java-hello-world-lambda.zip -d java-hello-world-lambda && rm java-hello-world-lambda.zip | ||
``` | ||
- Via the CLI: | ||
```shell | ||
restate example java-hello-world-lambda && cd java-hello-world-lambda | ||
``` | ||
|
||
- Via git clone: | ||
```shell | ||
git clone [email protected]:restatedev/examples.git | ||
cd examples/java/hello-world-lambda | ||
``` | ||
|
||
- Via `wget`: | ||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/java-hello-world-lambda.zip && unzip java-hello-world-lambda.zip -d java-hello-world-lambda && rm java-hello-world-lambda.zip | ||
``` | ||
|
||
## Package | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Kotlin examples | ||
|
||
This directory contains Restate examples using the Kotlin SDK. | ||
|
||
## Starters | ||
| Language | Name / Link | | ||
|-----------|-----------------------------------------------------------------| | ||
| Kotlin | [Hello World HTTP](hello-world-http) | | ||
| Kotlin | [Hello world on AWS Lambda](hello-world-lambda) | | ||
| Kotlin | [Hello world on AWS Lambda + CDK](hello-world-lambda-cdk) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,21 @@ Sample project configuration of a Restate service using the Kotlin coroutines in | |
|
||
## Download the example | ||
|
||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/kotlin-hello-world-http.zip && unzip kotlin-hello-world-http.zip -d kotlin-hello-world-http && rm kotlin-hello-world-http.zip | ||
``` | ||
- Via the CLI: | ||
```shell | ||
restate example kotlin-hello-world-http && cd kotlin-hello-world-http | ||
``` | ||
|
||
- Via git clone: | ||
```shell | ||
git clone [email protected]:restatedev/examples.git | ||
cd examples/kotlin/hello-world-http | ||
``` | ||
|
||
- Via `wget`: | ||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/kotlin-hello-world-http.zip && unzip kotlin-hello-world-http.zip -d kotlin-hello-world-http && rm kotlin-hello-world-http.zip | ||
``` | ||
|
||
## Running the example | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,21 @@ For more information on CDK, please see [Getting started with the AWS CDK](https | |
|
||
## Download the example | ||
|
||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/kotlin-hello-world-lambda-cdk.zip && unzip kotlin-hello-world-lambda-cdk.zip -d kotlin-hello-world-lambda-cdk && rm kotlin-hello-world-lambda-cdk.zip | ||
``` | ||
- Via the CLI: | ||
```shell | ||
restate example kotlin-hello-world-lambda-cdk && cd kotlin-hello-world-lambda-cdk | ||
``` | ||
|
||
- Via git clone: | ||
```shell | ||
git clone [email protected]:restatedev/examples.git | ||
cd examples/kotlin/hello-world-lambda-cdk | ||
``` | ||
|
||
- Via `wget`: | ||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/kotlin-hello-world-lambda-cdk.zip && unzip kotlin-hello-world-lambda-cdk.zip -d kotlin-hello-world-lambda-cdk && rm kotlin-hello-world-lambda-cdk.zip | ||
``` | ||
|
||
## Deploy | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,21 @@ Sample project configuration of a Restate service using the Kotlin coroutines in | |
|
||
## Download the example | ||
|
||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/kotlin-hello-world-lambda.zip && unzip kotlin-hello-world-lambda.zip -d kotlin-hello-world-lambda && rm kotlin-hello-world-lambda.zip | ||
``` | ||
- Via the CLI: | ||
```shell | ||
restate example kotlin-hello-world-lambda && cd kotlin-hello-world-lambda | ||
``` | ||
|
||
- Via git clone: | ||
```shell | ||
git clone [email protected]:restatedev/examples.git | ||
cd examples/kotlin/hello-world-lambda | ||
``` | ||
|
||
- Via `wget`: | ||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/kotlin-hello-world-lambda.zip && unzip kotlin-hello-world-lambda.zip -d kotlin-hello-world-lambda && rm kotlin-hello-world-lambda.zip | ||
``` | ||
|
||
## Package | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,24 @@ Here is an overview of the services: | |
**Note:** This app stores images locally in the shared locally accessible folder `generated-images`. | ||
In a real deployment, this would need to be a shared storage, like S3. | ||
|
||
## Download the example | ||
|
||
- Via the CLI: | ||
```shell | ||
restate example typescript-dynamic-workflow-executor && cd typescript-dynamic-workflow-executor | ||
``` | ||
|
||
- Via git clone: | ||
```shell | ||
git clone [email protected]:restatedev/examples.git | ||
cd examples/typescript/dynamic-workflow-executor | ||
``` | ||
|
||
- Via `wget`: | ||
```shell | ||
wget https://github.com/restatedev/examples/releases/latest/download/typescript-dynamic-workflow-executor.zip && unzip typescript-dynamic-workflow-executor.zip -d typescript-dynamic-workflow-executor && rm typescript-dynamic-workflow-executor.zip | ||
``` | ||
|
||
## Running the example | ||
|
||
### Deploy Restate Server | ||
|
Oops, something went wrong.