Skip to content

Viktor-Bredihin/symfony2-angular

Repository files navigation

symfony_angular

Project Bootstrap for Symfony 2 + Angularjs. There is a test 'Post' module implemented like REST API. Created on December 11, 2015, 6:17 am.

TECHNICAL REQUIREMENTS

  • git
  • composer
  • bower
  • compass
  • gulp
  • php >= 5.4
  • APC enabled
  • intl php extension

GIT REPO BRANCHES

  • master - main work branch

  • production - branch for production server. Do not merge untested changes to it

  • others - working branches for different features - must be merged to master after they are ready.

TECHNOLOGIES

Back-end

  • Symfony2
  • mysql

SYMFONY BUNDLES

Frontend

  • Twitter Bootstrap 3
  • jQuery
  • angularJS
  • compass
  • gulp

Gulp plugins

Set Up

Install compass

$ sudo gem update --system
$ gem install compass

Install gulp globally

$ npm install --global gulp

Install node modules

$ npm install

Useful commands

  • gulp (track changes)

  • gulp clean

  • gulp build

  • php app/console fos:js-routing:dump (build js routes)

DEPLOYMENT INSTRUCTIONS

Clone the repo

$ git clone

Install vendors & configure parameters

$ composer install

Change the permissions of the next directories so that the web server can write into them:

app/cache/
app/logs/    

the ways to do it are described here

$ sudo setfacl -R -m u:www-data:rwX -m u:`whoami`:rwX app/cache app/logs web/media web/uploads web/media
$ sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs web/media web/uploads web/media

Install assets

$ php app/console assets:install web --symlink

$ php app/console assetic:dump --env=prod

Create configured databases

$ php app/console doctrine:database:create
$ php app/console doctrine:schema:update --force

Load fixtures:

ORM fixtures:

$ php app/console doctrine:fixtures:load 

Check against requirements to run the application:

In web browser run:

/check.php

About

Project Bootstrap for Symfony 2 + Angularjs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published