Public | Automated Build

Last pushed: 2 years ago
Short Description
A web service to post and retrieve high scores of games. Part of the FI-Content 2 project.
Full Description

Leaderboard

A web service to post and retrieve high scores of games.
Part of the FI-Content 2 project.

Run

Using our Docker image:

docker run -d -p 4567:4567 fic2/leaderboard

This will redirect container port 4567 to local port 4567. The service will then be available at http://dockerhost:4567/lb

The SQLite database is stored in file /opt/leaderboard-0.2/leaderboard.sqlite within the container.

If you want to store that database outside of the container, you can mount it from your local filesystem as follows:

touch leaderboard.sqlite
docker run -d -p 4567:4567 -v `pwd`/leaderboard.sqlite:/opt/leaderboard-0.2/leaderboard.sqlite fic2/leaderboard

Test

Create a new game in the leaderboard server:

curl -H "Content-Type: application/json" -v -X PUT http://localhost:4567/lb/mygame

API documentation

API specification:
http://wiki.mediafi.org/doku.php/ficontent.gaming.enabler.leaderboard

Example usage:
http://wiki.mediafi.org/doku.php/ficontent.gaming.enabler.leaderboard.developerguide

Docker Pull Command
Owner
fic2

Comments (0)