|
|
2 лет назад | |
|---|---|---|
| Docker | 2 лет назад | |
| gradle | 2 лет назад | |
| src | 2 лет назад | |
| .gitignore | 2 лет назад | |
| README.md | 2 лет назад | |
| build.gradle.kts | 2 лет назад | |
| gradle.properties | 2 лет назад | |
| gradlew | 2 лет назад | |
| gradlew.bat | 2 лет назад | |
| settings.gradle.kts | 2 лет назад | |
| test.sh | 2 лет назад |
gradle build
unzip build/distributions/playerRank-0.0.1.zip -d <location>
/<location>/playerRank-0.0.1/bin/playerRank
starts web server with api: http://localhost:8080/
gradle test --tests "re.chasam.models.impl.TournamentImplTest"
gradle test --tests "re.chasam.models.impl.PlayerTest"
Its access follows the format:
scheme://host:port
to access to a db and use collection. Defaults parameters can be overriden using environments variables:
SCHEME
HOST
PORT
NAME
COLLECTION
cd Docker
docker compose up
lists all players with name score and rank
get a player score and its rank
add a new player, its score and rank are set to 0
set the score of a player
remove all players