https://github.com/voku/do-epic-shit-demo
Demo: Open Source Workflow für Webdeveloper (OpenRheinRuhr 2014)
https://github.com/voku/do-epic-shit-demo
Last synced: 2 months ago
JSON representation
Demo: Open Source Workflow für Webdeveloper (OpenRheinRuhr 2014)
- Host: GitHub
- URL: https://github.com/voku/do-epic-shit-demo
- Owner: voku
- License: mit
- Created: 2014-11-02T21:50:41.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:50:39.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T22:48:32.731Z (12 months ago)
- Language: CSS
- Size: 7.26 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
DO-EPIC-SHIT (Slim + Twig + Redbean)
======================================================Demo: Open Source Workflow für Webdeveloper (OpenRheinRuhr 2014)
======================================================
* **Controller/Routing**: Slim ([codeguy/Slim](https://github.com/codeguy/Slim))
* **Model/Persistence/ORM**: RedBean ([gabordemooij/redbean](https://github.com/gabordemooij/redbean))
* **View/Template**: Twig ([fabpot/Twig](https://github.com/fabpot/Twig))
* **UI Toolkit**: Twitter Bootstrap ([twitter/bootstrap](https://github.com/twitter/bootstrap))## Installation
The instructions below assume you are running a **LAMP** stack in Ubuntu or any other **apt**-based distributions. To allow Slim to route with clean path syntax, you need to enable the url rewrite module.
sudo a2enmod rewrite
sudo service apache2 restartOptionally, if you want to run this demo with the default SQLite database, you need the driver
sudo apt-get install php5-sqlite
Suppose your document root is in /var/www, clone the repository as follows:
cd /var/www
git clone https://github.com/voku/DO-EPIC-SHIT DO-EPIC-SHITThe required vendor libraries can be installed/updated using [Composer](http://getcomposer.org/). Go to the project root (where you see the file *composer.json*) and run the following command:
cd ./DO-EPIC-SHIT
composer installThere are some directories should be made writeable to your web server process.
chmod -R 777 ./app/storage
Then, update your apache config file to set your document root to the **web** subdirectory. This helps to secure your scripts which should normally be put inside the **app/** folder.
DocumentRoot /var/www/DO-EPIC-SHIT/web
ServerName DO-EPIC-SHIT.example.com
Note that in order to make the *.htaccess* effective, your main apache config file must allow subdirectory to override it.
AllowOverride All
##Structure
* **app/** contains all files for your app: `models/`, `controllers/`, `views/` (Twig templates) and your `config/` (configuration). Slim is instantiated in `app/start.php`
* **vendor/** contains the libraries for your application, and you can update them with composer.
* **web/** is for your assets: js/css/img files. It should be the only folder publically available so your domain should point to this folder. `web/index.php` bootstraps the rest of the application.##Writable Directory
* **app/storage/db/** contains SQLite database file.
* **app/storage/cache/twig/** contains the twig template cache.
* **app/storage/logs/** contains the error logs.## Credits
This project is inspired from [Tieno/SlimPackage](https://github.com/Tieno/SlimPackage/) and [briankiewel/pagodabox-laravel-4](https://github.com/briankiewel/pagodabox-laravel-4).
## License
Software licensed under the [MIT license](http://opensource.org/licenses/MIT)
----------