client is a web application which designed to directly work with API. This works as a data consumer. It consumes data from your API. So this would be your own website which works as a Client of your API. Using Password or Client Credentials grant, client application sends a POST request for user authentication to the API with username and password values.
Caution: This only works with this repo server which would be your Server API for resources. To get a complete applicatoin this needs to be set up too.
Just clone the repository and run composer
as follows:
cd path/to/project/dir
git clone git://github.com/unclexo/client.git
cd client
php composer.phar install
Alternately, download the repo to some directory and run composer
as follows:
cd path/to/project/dir
php composer.phar install
To setup apache, setup a virtual host to point to the public/ directory of the project. It should look something like below:
<VirtualHost *:80>
ServerName client.dev
DocumentRoot /path/to/client/public
<Directory /path/to/client/public>
DirectoryIndex index.php
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Make sure this data/uploads
directory is writable.
Make sure files in this data/logs
directory are writable.
You must set up another repo as your Server API named server to make client repo work correctly. So please go over there and set up things as said there.
client is provided under the MIT license.
If you found a mistake or a bug, please report it using the Issues page. Your feedback is highly appreciated.