Application to manage player and his items.
Make sure you have docker and docker compose installed. Here are my versions:
$ docker --version
Docker version 20.10.22, build 3a2c30b
$ docker compose version
Docker Compose version v2.15.1
Start with cloning the repository
git clone https://github.com/Vrangz/player-manager.git
You can use already prepared scripts in script
directory. To run the application call
./scripts/run.sh
and if you want to stop the containers then execute
./scripts/stop.sh
The application doesn't allow to create a user, but there's one already created krzysztofszulcjr
.
The server will be accessible on localhost at 8080 port. Check out the swagger to learn more about the API. Some endpoints require basic authentication, so use username
and password
as credentials to authenticate.
Get player information
curl "http://localhost:8080/api/v1/players/krzysztofszulcjr"
Get player items
curl "http://localhost:8080/api/v1/players/krzysztofszulcjr/items"