- PHP 7
apc
extension (optional)
- MySQL (MariaDB 10)
- Apache 2.4
- Composer
- Git
git clone https://github.com/nestauk/DSI4EU.git
- create MySQL user and database
- import into MySQL database all the files from db/queries
- copy config/app.sample.php to config/app.php and update with correct information
composer install
vendor/bin/phinx migrate -e production
cd www/data-viz
git clone https://github.com/nestauk/DSI4EU_Dataviz.git
- follow installation instructions from www/data-viz/README.md
- create symlink for data visualisation
ln -s www/viz www/data-viz/public
- make sure the .htaccess file exists in www/data-viz/public/
The entry point for all the requests is the www/index.php file. All requests are directed to this file by the web server. The index.php bootstraps the application and will invoke a controller ( in src/DSI/Controller/, src/Controllers/ ) based on the http route.
The controllers are responsible to execute any required actions ( in src/DSI/UseCase/, src/Actions/ ) before loading the views ( in www/views/, src/Views/ ).
Command line calls are made to cli.php. Run php cli.php
to list all the possible options.
- run sql migrations:
vendor/bin/phinx migrate -e production
- create sql migration:
vendor/bin/phinx create
ClassName - run sql seed:
vendor/bin/phinx seed:run -s
ClassName