Return real minAge in connect game data
[gamestick-pjgsapi.git] / README.rst
1 PlayJam GameStick API server
2 ****************************
3
4 Makes PlayJam GameSticks usable after the official server had been shut down
5 in 2017.
6
7
8 Setup
9 =====
10
11 1. Copy ``config.php.dist`` to ``config.php``
12 2. Clone the `game data repository <https://codeberg.org/gamestick-fans/game-data>`_::
13
14      $ git clone https://codeberg.org/gamestick-fans/game-data.git
15 3. Unpack one of the cache files::
16
17      $ cd game-data
18      $ gunzip -k caches/2017-01-12T00\:19\:12-alex.shorts.pretty.json.gz
19 4. Generate the popular and featured menus from the cache file::
20
21      $ ./bin/list-popular.php 'caches/2017-01-12T00:19:12-alex.shorts.pretty.json' > ../cache/popular.txt
22      $ ./bin/list-featured.php 'caches/2017-01-12T00:19:12-alex.shorts.pretty.json' > ../cache/featured.json
23 5. Fill the caches for this API::
24
25      $ cd ..
26      $ ./bin/generate-apps-cache.php game-data/classic/
27 6. Setup the Apache web server and point the virtual host to the ``www/`` directory.
28
29
30 About
31 =====
32 This server software was written by `Christian Weiske <https://cweiske.de/>`_
33 and is licensed under the AGPL v3.