Skip to content

birkanpala/kalah-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kalah Game

Tech Stack

  • Java 8
  • Spring Boot 2.1.6
  • H2 Database
  • Lombok
  • JUnit 5
  • Swagger

Running

Run with Gradle

Build:

./gradlew clean build

Run tests only:

./gradlew clean test

Run the application:

./gradlew bootRun

Run in Docker container

Build:

./gradlew clean jibDockerBuild

Run application in Docker container:

docker run -p 8080:8080 kalah-game:1.0.0

Run as JAR file

Build:

./gradlew clean build

Run the application:

java -jar build/libs/kalah-game-1.0.0.jar

Swagger API Documentation

http://localhost:8080/swagger-ui.html

Test Reports

HTML test reports are generated under build/reports/tests/test

Improvements

  • Add optimistic locking mechanism with @Version, ETag and If-Match