- $:
composer install
- Set only the database parameters, skip the others
- $:
bin/console doctrine:database:create && bin/console doctrine:schema:create && bin/console hautelook_alice:doctrine:fixtures:load --no-interaction
- This creates the database, populates it with test data && automatically indexes them with elasticsearch
hautelook/alice-bundle
- for easy fixture generation from yaml files. Can be found under src/AppBundle/DataFixturesfriendsofsymfony/rest-bundle
- bundle for API creationfriendsofsymfony/elastica-bundle
- elasticsearch integration into symfony. Check outbin/console | grep elastica
for available commandsjms/serializer-bundle
- bundle used for serialization, here for API responses serialization.nelmio/api-doc-bundle
- bundle that simplyfies creation of API documentation. Examples can be found in src/ApiBundle/Controller/PostApiController.php inApiDoc
annotation.
alias compi='composer install'
alias compu='composer update'
alias bc='php bin/console'
alias cl='bc cache:clear'
alias clall='cl -e prod && cl && cl -e test'
alias fadb='bc doctrine:database:drop -e test --force && bc doctrine:database:create -e test && bc doctrine:schema:create -e test && bc hautelook_alice:doctrine:fixtures:load -e test'
alias fixtures='bc hautelook_alice:doctrine:fixtures:load --no-interaction'