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.sqlto your database - Copy
/contrib/config.phpto/config.php - Edit
/config.phpand 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.shto/data.git/.git/hooks/to automatically import new data whenever the git repository is updated - Add a cronjob or systemd timer to
git pullthe repository
- Clone the protondb-data repository to