pragma-framework / framework
The Pragma Framework
v1.0.1
2017-06-26 13:20 UTC
Requires
- php: >=5.3.0
- pragma-framework/core: ^1.0.0
This package is auto-updated.
Last update: 2024-11-21 02:05:13 UTC
README
Installation
Using composer
$ composer create-project pragma-framework/framework [project-name] dev-master
Using git
$ git clone https://github.com/pragma-framework/framework.git
Dependencies
$ composer install
Alternatively we provide a Makefile for some redundant tasks:
$ make vendor
Configuration
Copy the config.default.php
to config.php
, and edit the DB_*
constant values according to your system installation.
$ make config/config.php
$ $VISUAL config/config.php
Assets management
The assets/
folder isn't in the public/
folder used as the DocumentRoot/root for your Web server.
The idea is to allow you to work on your source files and only make the compiled version available to the world (e.g: sass -> css, coffee -> js, ...).
Hierarchy file structure example:
.
[...]
+-- assets
| +-- images
| +-- javascripts
| | +-- lib
| | | +-- jquery.min.js
| | +-- app.js
| +-- stylesheets
| | +-- src
| | | +-- styles.sass
| | +-- dist
| | | +-- lib
| | | | +-- bootstrap.min.css
| | | +-- styles.css
[...]
+-- public
Assuming you have this tree, you can make available the needed assets as follow:
$ cd public/
$ mkdir assets/
$ cd assets/
$ ln -s ../../assets/images ./
$ ln -s ../../assets/javascripts ./
$ ln -s ../../assets/stylesheets/dist ./stylesheets