psecio / gatekeeper

Gatekeeper: An Authentication & Authorization Library
366 stars 23 forks source link

Installation and configuration #24

Closed Ser5 closed 8 years ago

Ser5 commented 8 years ago

Here is the page: http://gatekeeper-auth.readthedocs.org/en/latest/installation-and-configuration/

"Create a database named gatekeeper and create a user for it (this is configured later)" I'm not sure that users wish to create one more database for storing users... I think they'll try to use existing database. This interferes with issue #6, which seems to suppose same idea... I'm not quite sure if creating different database should be mentioned in the manual.

"Open both of these files and update the connection information to match the database you created earlier." This is not enough. A developer also needs to change paths.migrations to the actual directory, relative to the directory we run phinx from.

<?php
require_once 'vendor/autoload.php';
Gatekeeper::init();
?>

This short example gives an error, as one should use not just Gatekeeper, but \Psecio\Gatekeeper\Gatekeeper.

enygma commented 8 years ago

Good point - I'm actually in the process of working up a bash script to help make installation even easier and making these changes for the user without the manual editing/copying of the files.

enygma commented 8 years ago

So there's now a bin/setup.sh script that can be executed to set up the Gatekeeper system. It still requires the user to create the database first but at least it automates the rest. Going to close this issue out.