Project that allows to save company data with rest api.
Based on official symfony docker env. Check symfony/docker if more info is needed.
- If not already done, install Docker Compose (v2.10+)
- Run
docker compose build --no-cacheto build fresh images - Run
docker compose up --pull always -d --waitto start the project - Open
https://localhostin your favorite web browser and accept the auto-generated TLS certificate - Run
docker compose down --remove-orphansto stop the Docker containers.
To run unit tests following has to be done:
# login into container
docker compose exec php sh
# make sure bin/console file is executable file as well phpunit bin
chomd +x bin/console bin/phpunit
# setup database and run migrations
php bin/console doctrine:database:create --env=test
# migrations
php bin/console doctrine:migrations:migrate --no-interaction --env=test
# run unit test
php bin/phpunit
For debugging tests in apache netbeans
docker compose exec -e XDEBUG_TRIGGER=netbeans-xdebug php vendor/bin/phpunit