a cloud service, written in java, as standalone and as smartfoxserver 2x extension, within FI-Content2. It allows to post and retrieve high scores of games.
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
The software was tested on Linux and Windows and should run on any platform supporting Java and MySQL.
- Json library minimal-json
- Micro web framework Spark
- MySQL connector
-
Install mysql server
-
Create a file config.properties, here is an example:
# escape the characters #, !, =, and : with a preceding backslash # (local) address of database url = jdbc\:mysql\://localhost\:3306/ # database user/password user = root password = secret123 # logfile is optional logfile = log.txt
-
Make sure you have java installed
-
Copy/clone the files in leaderboard-standalone
3a. Install the leaderboard as a service or 3b. start the server manually with leaderboard-standalone/bin/run.*
One good way to get started is to use the div/admin-and-test.html file. For further information, please refer to the [development guide] (http://wiki.mediafi.org/doku.php/ficontent.gaming.enabler.leaderboard.developerguide).