Sign inSign up

fic2/leaderboard

By fic2

Updated almost 11 years ago

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

Image
0

1.3K

fic2/leaderboard repository overview

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

Tag summary

Content type

Image

Digest

sha256:8406a9923

Size

246.2 MB

Last updated

almost 11 years ago

docker pull fic2/leaderboard