This simple application takes the ProtonDB database dumps from the ProtonDB project, stores it in a real database and serves a simple API to query it.
These instructions haven't really been tested and only serve as a general guidance on how to set up the PHP application. This assumes you already have an nginx, PHP and MySQL setup going.
- Configure the MySQL database
- Import the contents of
/contrib/initdb.sql
to your database - Copy
/contrib/config.php
to/config.php
- Edit
/config.php
and input your MySQL credentials
- Import the contents of
- Configure nginx to add the server defined in
/contrib/nginx.conf
. - (optional) Set up the protobdb-data repository
- Clone the protondb-data repository to
/data.git
- Copy
/contrib/post-merge.sh
to/data.git/.git/hooks/
to automatically import new data whenever the git repository is updated - Add a cronjob or systemd timer to
git pull
the repository
- Clone the protondb-data repository to