-
For the sake of completion, the
/vendordirectory is included in the submission as well as the git repo, but this should never be the case for a production application. If the folder does not exist or is empty, please install using the following in the root directory of the project:composer install. -
Please enable/install the GD image library for PHP. For Linux, see: http://www.cyberciti.biz/faq/ubuntu-linux-install-or-add-php-gd-support-to-apache/
-
Restore the MySQL database from the
/database/asg.sqlfile. Configure the database settings in the/src/startup.phpfile to correspond to your working environment. The specific fields to edit are:
/**
* Initialize DB.
*/
DB::$user = 'root';
DB::$password = 'password';
DB::$dbName = 'asg';
DB::$error_handler = 'error_handler';
Ideally you would have a .gitignore file to exclude the /vendor, /src/templates/cache and so forth. For the sake of having a working project without the need of further technologies such as Composer, I have submitted everything to this repo. For production solutions a .gitignore file is absolutely mandotory.
Please navigate to the /public folder and start your server from this directory. With PHP it's as easy as: php -S localhost:8000 or similar configuration.
- FastRoute for routing. https://github.com/nikic/FastRoute
- Twig templating engine. http://twig.sensiolabs.org/
- MeekroDB as database layer. http://meekro.com/
- Intervention image manipulation library. http://image.intervention.io/