romeoz/rock-app-basic

Rock Basic Application

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Language:CSS

0.10.5 2015-07-15 08:13 UTC

This package is not auto-updated.

Last update: 2024-04-13 14:39:51 UTC


README

Build Status HHVM Status Coverage Status License

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.