This is the OAuth 2 server for the Yaffect Android application.
This project needs a web server to function. The project have only been tested with Apache 2.4, but feel free to test with other web servers!
This is the VirtualHost configuration that I'm using for this project:
<VirtualHost *:80>
DocumentRoot "/path/to/directory"
<Directory "/path/to/directory">
AllowOverride All
</Directory>
</VirtualHost>
This project requires MySQL-compatible databases, e.g. MySQL or MariaDB.
This project have been developed using PHP 7.2, but might work with other versions of PHP. If you are compiling PHP from source, make sure to use the --with-mysqli flag.
Clone this repostiory into a directory of your choice and point to that directory in your httpd-vhosts.conf
file.
Add a file named config.php
in the root directory of the repository containing the information about the server, for example:
<?php
return array(
'hostname' => '[hostname]',
'username' => '[username]',
'password' => '[password]',
'database' => '[database-name]',
'debug' => true
);
?>
If debug
is set to true the server will output error messages.