An open API service indexing awesome lists of open source software.

https://github.com/g-khan/spring-boot-kotlin-demo

Simple Spring Boot Kotlin Project with Spring Data & Docker
https://github.com/g-khan/spring-boot-kotlin-demo

docker kotlin spring-boot-kotlin

Last synced: 2 months ago
JSON representation

Simple Spring Boot Kotlin Project with Spring Data & Docker

Awesome Lists containing this project

README

        

## Simple and Sample Spring Boot Kotlin Project

Dockerized demo project using Kotlin, Spring Boot, Embeded H2, JPA and Hibernate.

## Kotlin ile Backend/Server-side Programlama (Turkish)
[![IMAGE ALT TEXT HERE](https://media.kommunity.com/communities/delivery-hero-tech-hub/events/kotlin-ile-backendserver-side-programlama-c9a83374/26871/kotlin-backend.jpg?p=event-640)](https://www.youtube.com/watch?v=ovteP53wzpA)

## Requirements
1. Java - 1.11.x
2. Gradle- 3.x.x
3. Docker- 5.x.x

**Running the App**
Type the following command in your terminal to run the app -

./gradlew bootRun

**Build and Run with Docker**
Build the project with gradle:

./gradlew build

Build Docker and run docker with docker-compose

docker build . -t spring-boot-kotlin-demo

docker-compose up -d

The app will start running at [http://localhost:8099](http://localhost:8099/).

## Rest APIs

The app defines following for APIs.

GET /users?user=G-khan

POST /users
{
"name":"Gökhan",
"username":"G-khan"
}