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

nestauk/DSI4EU

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published