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:
cp app/config/runtime-conf.xml.dist app/config/runtime-conf.xml
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;build.properties
you should not edit this file, except to change the database vendor (mysql
by default);config.php
you should not edit this file, except to turn on/off debugging stuffs.
First, install the application as described in section Installation.
Install dev depedencies:
php composer.phar install --dev
Then run the testsuite:
bin/phpunit
In a browser, open /js/tests/index.html
.
In a shell, install PhantomJS, and run the following comand:
phantomjs web/js/tests/run-qunit.js file://`pwd`/web/js/tests/index.html
Propilex is released under the MIT License. See the bundled LICENSE file for details.