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
cp app/config/parameters.yml.dist app/config/parameters.yml
php composer.phar install --dev
vendor/bin/phing setup
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:
vendor/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:
vendor/bin/phpcs --standard=PSR2 src/
