{"id":13556188,"url":"https://github.com/sdeleuze/geospatial-messenger","last_synced_at":"2025-07-25T05:36:02.756Z","repository":{"id":139303231,"uuid":"53789919","full_name":"sdeleuze/geospatial-messenger","owner":"sdeleuze","description":"Geospatial messenger application written with Spring Boot + Kotlin + PostgreSQL","archived":false,"fork":false,"pushed_at":"2018-03-11T19:52:00.000Z","size":1579,"stargazers_count":218,"open_issues_count":1,"forks_count":43,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-10-11T16:11:25.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://spring.io/blog/2016/03/20/a-geospatial-messenger-with-kotlin-spring-boot-and-postgresql","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdeleuze.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-13T14:41:50.000Z","updated_at":"2024-01-04T16:03:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3570a1e-0aff-4437-8332-06ede18fc12a","html_url":"https://github.com/sdeleuze/geospatial-messenger","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdeleuze%2Fgeospatial-messenger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdeleuze%2Fgeospatial-messenger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdeleuze%2Fgeospatial-messenger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdeleuze%2Fgeospatial-messenger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdeleuze","download_url":"https://codeload.github.com/sdeleuze/geospatial-messenger/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221667132,"owners_count":16860554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T12:03:41.295Z","updated_at":"2024-10-27T11:08:26.512Z","avatar_url":"https://github.com/sdeleuze.png","language":"Kotlin","funding_links":[],"categories":["Kotlin","others","Geospatial Library"],"sub_categories":["Kotlin"],"readme":"This is a sample application that demonstrates how to build a Kotlin + Spring Boot applications with a PostgreSQL database.\nThe code is very concise, and the generated application is a 18 MBytes self-contained executable jar with low memory consumption.\n\nA detailed blog post describing this application is available [here](https://spring.io/blog/2016/03/20/a-geospatial-messenger-with-kotlin-spring-boot-and-postgresql).\n\nIt is used as a playground to demonstrate various features:\n - Gradle [build.gradle.kts](https://github.com/sdeleuze/geospatial-messenger/blob/master/build.gradle.kts) file written in Kotlin instead of Groovy, see [gradle-script-kotlin](https://github.com/gradle/gradle-script-kotlin/releases) for more details.\n - Simple [User](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/kotlin/io/spring/messenger/domain/User.kt)\n   and [Message](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/kotlin/io/spring/messenger/domain/Message.kt)\n   domain model classes thanks to [Kotlin data classes](https://kotlinlang.org/docs/reference/data-classes.html).\n - The [Application](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/kotlin/io/spring/messenger/Application.kt)\n   class shows how to configure a Kotlin Spring Boot application. \n - Typesafe SQL DSL with [Exposed](https://github.com/JetBrains/Exposed) that allows to define your\n   [SQL tables](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/kotlin/io/spring/messenger/Database.kt#L8-L20)\n   and describe your [SQL requests](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/kotlin/io/spring/messenger/repository/MessageRepository.kt)\n   with a fluent API without requiring code generation.\n - [Controllers](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/kotlin/io/spring/messenger/web/MessageController.kt)\n   demonstrates how to use Spring Framework 4.3 upcoming `@GetMapping` and `@PostMapping` annotation shortcuts, as well as Server-Sent Events\n   to push data to the client.\n - [Kotlin extensions](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/kotlin/io/spring/messenger/Database.kt#L23-L42)\n    allows to add Geospatial support to [Exposed](https://github.com/JetBrains/Exposed) and\n    [use it](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/kotlin/io/spring/messenger/repository/UserRepository.kt#L35-L37)\n    as if this was supported out of the box. \n - The REST API is fully tested and documented thanks to the awesome [Spring REST docs](http://projects.spring.io/spring-restdocs/)\n   , see [MessageControllerTests](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/test/kotlin/io/spring/messenger/MessageControllerTests.kt)\n   and [index.adoc](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/asciidoc/index.adoc).\n - The client side is originally a pure HTML + Javascript application developed with [OpenLayers](http://openlayers.org) mapping library, see [index.html](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/resources/static/index.html) and [map.js](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/resources/static/map.js). But an experimental (work in progress) Kotlin2js version has ben contributed by @bashor, you can find it [here](https://github.com/sdeleuze/geospatial-messenger/tree/kotlin-js/gm-client/src/main/kotlin).\n\nA Spring Data version based on [spring-data-jdbc-repository](https://github.com/jirutka/spring-data-jdbc-repository/) is also available in [this branch](https://github.com/sdeleuze/geospatial-messenger/tree/spring-data-jdbc-repository). There is no Spring Data JPA version yet but feel free to fork this repo and contribute it with a pull request!\n     \n## Run the application\n\n - Install a PostgreSQL database with PostGis extension, on Mac you can use [Postgresapp](http://postgresapp.com/).\n - Clone this repository.\n - Customize database configuration on [application.yml](https://github.com/sdeleuze/geospatial-messenger/blob/master/src/main/resources/application.yml).\n - Run it within your IDE or with `./gradlew bootRun`.\n - Open `http://localhost:8080/` in your browser.\n![Screenshot](/screenshot.png?raw=true)\n - Documentation should be available at `http://localhost:8080/docs/index.html` when run from the JAR.\n\n \n## Improvements I have in mind\n - [Exposed issue #24](https://github.com/JetBrains/Exposed/issues/24): see if Exposed could support natively data classes + repository patten.\n - [Spring HATEOAS issue #401](https://github.com/spring-projects/spring-hateoas/issues/401): add HATEOAS support, but without having to extend\n   `ResourceSupport` or wrapping it into a `Resource\u003cFoo\u003e` container .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdeleuze%2Fgeospatial-messenger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdeleuze%2Fgeospatial-messenger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdeleuze%2Fgeospatial-messenger/lists"}