Repository of my personnal website (back end and back office only) based on Symfony.
- docker and docker-compose
- npm
- Clone the project:
git clone https://github.com/CedricWagner/SitePerso-Back.git .
- Start the docker container and access it:
cd docker && make up && make shell
- Install composer dependencies:
composer install
- Setup DB and load fixtures:
php bin/console doctrine:migrations:migrate --env=test && php bin/console doctrine:fixtures:load --env=test
- From your local machine and from the root of the application, install npm dependencies:
npm install
- Access the back office from: backend.site-perso.localhost:8000
php bin/phpunit # from the container
# install cs fixer
composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer
# apply fixes
PHP_CS_FIXER_IGNORE_ENV=1 tools/php-cs-fixer/vendor/bin/php-cs-fixer fix src
vendor/bin/phpstan analyse -c phpstan.neon