- Docker (v2.10+)
- npm
In a terminal:
docker compose up(This can take a while when building for the first time! 1300s on my last attempt)docker compose exec php shchmod 777 -R public/uploads/dishes(This is a fix to allow uploading of images through the website. It is probably not optimal)
In a second terminal:
npm installnpm run watch(The node container seems to not compile the files)
Open https://localhost (you might have to accept an unsigned certificate)
You can generate the fixtures on the dev database and use the account test@mail.com:root
You can also make your own admin account through the database:
docker compose exec php shphp bin/console security:hash-password- Follow the prompt and copy the password hash
exitdocker compose exec database psql -U app- Run the following command, replacing
EMAILwith your email andPASSWORDwith the copied hash INSERT INTO "user" (id, email, roles, password) VALUES (nextval('user_id_seq'), 'EMAIL', '["ROLE_ADMIN"]', 'PASSWORD');
docker compose exec php shphp bin/console app:generate-entities
docker compose exec php shphp bin/console doctrine:fixtures:load- Accept the prompt
docker compose exec php shphp bin/console doctrine:database:create --env=testphp bin/console doctrine:schema:create --env=testphp bin/console doctrine:fixtures:load --env=test- Accept the prompt
You must start the containers with docker compose up
docker compose exec php shphp bin/phpunit(available test suites to use with the--testsuiteoption:unit,integration,functional