romeoz / rock-app-basic
Rock Basic Application
Requires
- php: >=5.4.0
- romeoz/rock: 1.0.0-beta.8
Requires (Dev)
- phpunit/phpunit: ~4.7.0
- romeoz/rock-image: 0.10.*
- romeoz/rock-markdown: 0.10.*
This package is not auto-updated.
Last update: 2024-10-26 17:40:23 UTC
README
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
- Install Docker or askubuntu
docker run -d -p 8080:80 romeoz/rock-app-basic
- Open demo http://localhost:8080/
####2. VirtualBox + Vagrant + Ansible
composer create-project --prefer-dist romeoz/rock-app-basic:*
- Install VirtualBox
- Install Vagrant, and additional Vagrant plugins
vagrant plugin install vagrant-hostsupdater vagrant-vbguest vagrant-cachier
- Install Ansible
vagrant up
- Open demo http://rock-basic/ or http://192.168.55.55/
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.