Symfony2 project with a restful API for a school project.
First checkout source code and install the required dependencies:
git clone git://github.com/fabian/lightning-web.git lightning-web
curl -s http://getcomposer.org/installer | php
php composer.phar install --dev
Then create the database and the tables:
php app/console doctrine:database:create
php app/console doctrine:migrations:migrate
Run the server and open http://localhost:8000/ in your browser:
php app/console server:run
To execute the unit tests run the following command:
bin/phpunit -c app/
Make sure to follow the PSR-2 coding guidelines - warnings are okay, errors not. You can easily check them on the command line:
bin/phpcs --standard=PSR2 src/