- git (https://git-scm.com/downloads)
- composer (https://getcomposer.org/download/)
- php with php-xml module (sudo apt-get install php-xml [ubuntu 16]) (https://symfony.com/doc/current/reference/requirements.html)
- mysql
- Get composer https://getcomposer.org/download/
- Copy app/parameters.yml.dist to app/parameters.yml
- Run 'composer install' in project root folder
- Create database, load fixtures
- php bin/console doctrine:database:create
- php bin/console doctrine:schema:update --force
- php bin/console doctrine:fixtures:load
- Run 'php bin/console server:run localhost:8001'
SF2 standard pattern so controllers are located in AppBundle/Controller, Entities in AppBundle/Entity, all forms to handle parameters and data should be located in AppBundle/Form folder. All custom db queries including native queries should go to Repository objects located in AppBundle/Repository
- http://jmsyst.com/libs/serializer <- JMS is used for object rest serialization.
- http://symfony.com/doc/current/validation.html <- sf2 validation constraints doc, should be used on DTO and entities.
- http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/data-retrieval-and-manipulation.html <- in case of native query execution
- Run:
- npm install (that should install bower_components if not run 'bower install')
- npm start
To register new files add them on bottom of app/index.html
App structure
- app
- modules
- job (here goes all job related code)
- create (folder per functionality containing [controller, template file])
- list
- view
- routes.js (contains routes for job section)
- quote (here goes all quote related code)
- same as ^
- job (here goes all job related code)
- modules