Skip to content

Latest commit

 

History

History
72 lines (48 loc) · 863 Bytes

README.md

File metadata and controls

72 lines (48 loc) · 863 Bytes

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