No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
db
logs/mail-logs
resources
routes
src
tests
www
.gitignore
README.md
artisan
cli.php
composer.json
composer.lock
package-lock.json
package.json
phinx.php
webpack.config.js

README.md

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