Skip to content

rslvn/kalah-game

Repository files navigation

kalah

CircleCI Coverage Code Lines Of Code Technical Debit

6 pits 6 stones kalah game implementation.

What is kalah?

implementation

  • A spring-boot application
  • Gradle
  • lombok
  • pojo-tester
  • repository is a dummy repository. It should be replaced with relational a database or nosql solution
  • Test coverage %99 274/276

build

gradle clean build

run

docker

docker and docker-compose installations are necessary

docker-compose build
docker-compose up -d

gradle

gradle bootRun

test

/games

curl --header "Content-Type: application/json" \
     --request POST \
     http://localhost:8080/games

/games/{gameId}/pits/{pitId}

use id field value from previous request's response as gameId

curl --header "Content-Type: application/json" \
     --request PUT \
     http://localhost:8080/games/<id>/pits/5