https://github.com/santik/kalah
https://github.com/santik/kalah
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/santik/kalah
- Owner: santik
- Created: 2020-06-30T08:23:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-06T06:11:06.000Z (over 5 years ago)
- Last Synced: 2025-03-03T14:34:56.672Z (11 months ago)
- Language: Java
- Size: 43 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kalah solution
### Chosen technologies
- Java 11
- SpringBoot
- JUnit
### Testing
`mvn clean test`
98% of lines are covered.
### Running
`mvn clean package` - this will run tests and create jar file
then `java -jar target/kalah-0.0.1-SNAPSHOT.jar`
### Calls to access the game
Application will be running on port 7070. Port can be changed in application.properties
`curl --header "Content-Type: application/json" --request POST http://localhost:7070/games`
`curl --header "Content-Type: application/json" --request PUT http://localhost:7070/games/#GAME_ID#/pits/1`