Skip to content

Repository files navigation

ktor-RESTful-API

This project was created using the Ktor Project Generator.

Here are some useful links to get you started:

Features

Here's a list of features included in this project:

NameDescription
RoutingProvides a structured routing DSL
Static ContentServes static files from defined locations
Content NegotiationProvides automatic content conversion according to Content-Type and Accept headers
kotlinx.serializationHandles JSON serialization using kotlinx.serialization library

Building & Running

To build or run the project, use one of the following tasks:

TaskDescription
./gradlew testRun the tests
./gradlew buildBuild everything
buildFatJarBuild an executable JAR of the server with all dependencies included
buildImageBuild the docker image to use with the fat JAR
publishImageToLocalRegistryPublish the docker image locally
runRun the server
runDockerRun using the local docker image

If the server starts successfully, you'll see the following output:

2024-12-04 14:32:45.584 [main] INFO Application - Application started in 0.303 seconds.
2024-12-04 14:32:45.682 [main] INFO Application - Responding at http://0.0.0.0:8080

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages