|
|
пре 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