Open-source code of the knpbundles.com website, written in Symfony2.
Any ideas are welcome!
Please note that this service was previously called Symfony2Bundles but we had to change the name due to trademark issues.
git clone git://github.com/KnpLabs/KnpBundles.git
To configure your database in your development environment, copy
/app/config/parameters.yml.dist
to /app/config/parameters.yml
and
edit it according to your database settings.
If you want to use github connect locally, you'll need to create an app on github with the callback:
http://yourlocalurl/app_dev.php/oauth/github
And update the parameters.yml with the Client ID and Secret.
php bin/vendors install
php app/console doctrine:database:drop --force
php app/console doctrine:database:create
php app/console doctrine:schema:create
php app/console --env=test doctrine:database:drop --force
php app/console --env=test doctrine:database:create
php app/console --env=test doctrine:schema:create
php app/console doctrine:fixtures:load
php app/console --env=test doctrine:fixtures:load
php app/console assets:install --symlink web
phpunit -c app
php app/console --env=test behat
php app/console doctrine:migrations:diff
php app/console doctrine:migrations:migrate
php app/console cache:warmup
We rely on RabbitMQ to update bundles:
- The main server produces messages saying "Hey, we should update this bundle"
- The consumers read these messages and update them
To launch a consumer, do:
php app/console rabbitmq:consumer update_bundle
Note that you will need a functional rabbitmq server − but that's damn easy to install.
php app/console kb:populate
This can take long time. GitHub API is limited to 60 calls per minute, so the commands needs to wait.