Install the dependencies with composer (assuming
you have composer available globally and named composer):
composer install
Create your database (through PhpMyAdmin). Then create the tables in the database:
php app/console doctrine:migrations:migrate
For the prod environment, you also need to dump the assetic files and warmup the cache:
php app/console --env=prod --no-debug assetic:dump
php app/console --env=prod --no-debug cache:clear --no-warmup
php app/console --env=prod --no-debug cache:warmup
The projects provides some fixtures to allow having data for the development.
It will provide 2 known users: admin@example.org/test and
user@example.org/logsafe.
Loading the fixtures is done through the console:
php app/console doctrine:fixtures:load
The tests are written using PHPUnit so you need to install
PHPUnit 3.6. Then, you can run the tests by running phpunit at the root
of the project.
This section allows to track the version of the vendor assets we use, to know if we need to update them. It should be a git reference (tag name or commit hash) whenever the project is hosted with git.
- bootstrap: 2.2.1
- bootstrap-datepicker: ad7c00eb0dc2baa4672165303c3ee738b287d79b
- bootstrap-colorpicker: b9e7a64c371c25565128148ce71be562d8d62aaf
- jquery countdown: 1.6.0
- moment.js: 1.7.2
- timeago: v0.11.4
- chosen: v0.9.11
- humane-js: 3.0.5
- jQuery: 1.8.3
- jQuery UI: 1.9.2 (including
sortable) - jQuery autosize: 593b3de0867771f7e8ae6877b3e970653bd410a0
- jQuery Expander: 1.4.5
- jQuery handsontable: 0.7.5
- jQuery UI Touch Punch: 72d67b63c98a6d9c324881343fcd423b88939ccf
- jQuery pjax: 4bb8554240e13ee10888ccb23faa3c7dc36d7ff6
- jQuery a-tools: 1.5.1 (taken from the MDMagick repo as the jQuery plugin website lost the downloads)
- less.js: 1.3.1
- Marked: 0.2.6
- MDMagick: bf755e6e8c83d38a651ab1fb6a51a26415d0c843
- Modernizr: 2.6.2 (custom build)
- Placeholder polyfill: 1.3
- underscore.js: 1.4.2