A Silex application which uses Propel, Backbone.JS, but also:
- Bower as browser package manager;
- RequireJS;
- Garlic.js;
- Moment.js;
- Twitter Bootstrap;
- Less CSS;
- Backbone.Forms;
- Keymaster.
Install PHP dependencies:
php composer.phar install
And browser dependencies using Bower:
cd web && bower install
cd ..
Build Model classes, SQL, and the configuration:
bin/bootstrap
Configure a database:
mysql -uroot -e 'CREATE DATABASE propilex'
mysql -uroot propilex < app/config/sql/Propilex.Model.schema.sql
You're done! You can run the application using the PHP built-in webserver:
php -S 0.0.0.0:4000 -t web/
Open http://localhost:4000/
in your browser to see Propilex running.
All the configuration is located in the app/config/
directory.
runtime-conf.xml
contains the database configuration, if you modify it, don't forget to rebuild things by using the previous command;config.php
you should not edit this file, except to turn on/off debugging stuffs.
Propilex is released under the MIT License. See the bundled LICENSE file for details.