-
Notifications
You must be signed in to change notification settings - Fork 58
Local
Vladislav.Tankov edited this page Jun 13, 2020
·
4 revisions
All DSLs support the local run of the application.
It means that the application may be run via a local
task in Gradle, and will use Netty
for Ktor DSL, Jetty for Kotless DSL and Tomcat for SpringBoot. Application will start on
port 8080
by default.
Moreover, Kotless local start may spin up AWS emulation, if you enable it. Just instantiate your AWS Service client using override for Kotless local starts:
val client = AmazonDynamoDBClientBuilder.standard().withKotlessLocal(AwsResource.DynamoDB).build()
During local run with AWS Emulation, LocalStack will be started and all clients will be pointed to its endpoint automatically.
You may set the configuration of local run in a configuration of plugin extensions:
extensions {
local {
//change default local port
port = 9090
//enable AWS emulation (disabled by default)
useAWSEmulation = true
}
}