Skip to content

Simple Spring Boot Kotlin Project with Spring Data & Docker

Notifications You must be signed in to change notification settings

G-khan/spring-boot-kotlin-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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:https://localhost:8099.

Rest APIs

The app defines following for APIs.

GET /users?user=G-khan

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