Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

nestauk/DSI4EU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4a5c443 · Jun 14, 2019
Jul 4, 2018
Nov 22, 2018
May 2, 2018
Dec 10, 2018
May 30, 2019
Jun 14, 2019
Nov 25, 2018
Jan 11, 2019
Jul 29, 2018
Nov 22, 2018
Jul 29, 2018
May 2, 2018
Jul 29, 2018
May 19, 2019
Jun 8, 2019
Jun 8, 2019
May 15, 2018
May 10, 2018

Repository files navigation

DSI4EU

Server requirements

  • PHP 7
    • apc extension (optional)
  • MySQL (MariaDB 10)
  • Apache 2.4
  • Composer
  • Git

Installation

  • 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

Integration with data visualisation

  • 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/

Platform

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.

How to

  • 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