To develop you need NodeJS, NPM & PHP on your system.
Also, bower, grunt & composer are required.
$ sudo npm install -g grunt-cli # See grunt "Getting Started" : http://gruntjs.com/getting-started#installing-the-cli
$ sudo npm install -g bower
$ curl -sS https://getcomposer.org/installer | php
# Install all NodeJS dependencies
$ sudo npm install
# Install all client dependencies
$ bower install
# Install all PHP dependencies
$ composer install --dev --no-interaction
Extract translations using JMS
$ php app/console translation:extract en --config=app
$ php app/console translation:extract fr --config=app
Update translations using JMS WebUI : http://wozbe.dev/_trans/
Global assets are manage inside app/Resource/public
Global views are manage inside app/Resource/views
Using glyphicons & font-awesome
Symlink assets from bundles & application to web/
$ php app/console assets:install --symlink --relative && grunt assets:install
Make a first pass to compile assets
$ grunt
Files are compiled on web/built/[bundle]/[type]/
Easy development
$ grunt watch
More informations about Symfony & Grunt & Bower
Using Ruby, install bundler and capistrano dependencies.
$ gem install bundler
$ bundle install
To deploy, just choose your environment.
$ bundle exec cap development deploy # Deployed branch : development
$ bundle exec cap production deploy # Deployed branch : master
This will do all the deployment jobs : clone repository, install dependencies, compiled assets ...
More informations about Symfony & Capistrano
This application is runnable using vagrant
Local requirements
- Vagrant
- VirtualBox
- Internet connection
Configure the vagrant environment.
$ git submodule init
$ git submodule update
$ cp vagrant/config.yml.dist vagrant/config.yml
$ vim vagrant/config.yml # Choose private IP
$ vagrant up
Now VM is running and configured. You could create an entry inside the /etc/hosts
file to bind wozbe.dev to this VM.
$ open http://wozbe.dev
This bundle is under the MIT license. See the complete license.