Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • kt-ktor
  • kt-ktor-netty
  • kt-ktor-jetty
4 results

locations-kt-ktor

  • Clone with SSH
  • Clone with HTTPS
  • Locations ✖️ Ktor

    Implementing a subset of Locations service spec using asynchronous Ktor framework.

    Alternatives

    Multiple implementations of this service exist in different frameworks, languages for comparison.

    Running

    The service has runtime dependency on Elasticsearch instance with indices as explained in the elasticsearch directory of the locations-rs repository.

    Locally

    • Make sure you have GOOUT_ELASTIC_HOST and GOOUT_ELASTIC_PORT env vars set.
    • ./gradlew build --continuous to build the app and keep watching for source changes
    • ./gradlew run to launch the app. It will reload the classes when they're changed by the build process

    In Docker

    • ./gradlew shadowJar to build the fat jar
    • docker build -t locations-ktor . to build the docker image
    • docker run --rm -p 8080:8080 -e GOOUT_ELASTIC_HOST -e GOOUT_ELASTIC_PORT locations-ktor to run it

    Notes from implementation by @goodhoko