All Projects → wozbe → wozbe.com

wozbe / wozbe.com

Licence: MIT license
Source of wozbe.com

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
PHP
23972 projects - #3 most used programming language
HTML
75241 projects
ApacheConf
554 projects
ruby
36898 projects - #4 most used programming language

Wozbe

Wozbe

Build Status

Requirement

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

Translations

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/

Assets

Global assets are manage inside app/Resource/public

Global views are manage inside app/Resource/views

Using glyphicons & font-awesome

Deploy assets

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

Deployments

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

Vagrant

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

License

This bundle is under the MIT license. See the complete license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].