Public | Automated Build

Last pushed: 2 years ago
Short Description
Basic Application Template for Rock Framework
Full Description

Basic Application (demo) for Rock Framework




Installation

From the Command Line:

composer require romeoz/rock-app-basic:*

In your composer.json:

{
    "require": {
        "romeoz/rock-app-basic": "*"
    }
}

If you want to create tables Users and RBAC, then run /path/to/apps/common/migrations/bootstrap.php.

Demo & Tests (one of two ways)

####1. Docker + Ansible

####2. VirtualBox + Vagrant + Ansible

Work/editing the project can be done via ssh:

vagrant ssh
cd /var/www/rock-basic

####Out of the box:

  • Ubuntu 14.04 64 bit

If you need to use 32 bit of Ubuntu, then uncomment config.vm.box_url the appropriate version in the file /path/to/Vagrantfile.

  • Nginx 1.8
  • PHP-FPM 5.6
  • MySQL 5.6
  • Composer

Requirements

  • PHP 5.4+
  • MySQL 5.5+

Configure server

For a single entry point.

####Apache

Security via "white list":

RewriteCond %{REQUEST_URI} ^\/(?!index\.php|robots\.txt|500\.html|favicon\.ico||assets\b\/.+\.(?:js|ts|css|ico|xml|swf|flv|pdf|xls|htc|gif|jpg|png|jpeg)$).*$ [NC]
RewriteRule ^.*$ index.php [L]

####Nginx

Security via "white list":

location ~ ^\/(?!index\.php|robots\.txt|favicon\.ico|500\.html|assets\b\/.+\.(?:js|ts|css|ico|xml|swf|flv|pdf|xls|htc|gif|jpg|png|jpeg)$).*$
{
    rewrite ^.*$ /index.php;
}

or optimal version (recommended Igor Sysoev)

License

Basic Application for Rock Framework is open-sourced software licensed under the MIT license.

Docker Pull Command
Owner
romeoz
Source Repository

Comments (0)