# Readme

Follow these steps to run the application propperly.

####Requirements:
- Apache 2.4
- PHP 7.1

####Set up
- Define paths on app/cgi-bin/init/config.php

        ROOT_HOST = YOUR_VIRTUAL_HOST_URL
- Define .htaccess rules (app/.htaccess)
   
   You have to replace RewriteCond urls to match your virtual host. (Remember not to push this change)

- Create database
  - Go to migrations folder
  - composer install
  - Modify phinx.yml credentials to match your environment(s) ones.
  - vendor/bin/phinx migrate -e development
  - vendor/bin/phinx seed:run -e development
  - Import all dumps on migrations/db/dumps (They contain base organizations and crim macros)
  
  These two last commands will create and populate DB with initial data.
  
- Run command: mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root mysql

- Set up crontab as instructed on crontab.md file