Skip to content

A example repo to test around with some SAMT ktor configurations

License

Notifications You must be signed in to change notification settings

samtkit/ktor-demo

Repository files navigation

SAMT Ktor Demo

This is a demo project for a SAMT Ktor server and client project.

SAMT model

The SAMT model is located in the model directory. It can be generated by running SAMT on the samt.yaml file:

cd model
./samtw compile

Server

A simple Ktor server, which uses the generated SAMT provider to implement a basic greeter endpoint. It can be started by using the Start Server IntelliJ run configuration, or using the following CLI command:

./gradlew ktor-server:run

Client

A simple application which calls the server using the generated SAMT consumer. It can be started by using the Start Client IntelliJ run configuration, or using the following CLI command:

./gradlew ktor-client:run