App did with Symfony and Docker. Made to learn.
Inspiration from @Emilien.Gts tutorial
- Integration of DoctrineFixturesBundle and FakePHP for generating false test data.
- Integration of KnpPaginatorBundle to use a pagination system.
- Integration of VichUploaderBundle to manage uploading pictures.
- Integration of KarserRecaptcha3Bundle to securise form contact submit with a Captcha.
- Integration of EasyAdminBundle to set up and administration backend.
- Integration of FOSCKEditorBundle to set up an WYSIWYG system for the administration pannel
Developpement in progress ...
Clone the project
git clone git@github.com:francoiscoche/symrecipe.git
Run the docker-compose
docker-compose build
docker-compose up -d
Copy the vendor folder to the container (did for performance purpose)
cd .\project\
docker cp vendor php8-symrecipe:/var/www/project
docker cp var php8-symrecipe:/var/www/project
Log into the PHP container
docker exec -it jobme-php8 bash
Start the server
symfony serve -d
Create the database or update tables
symfony console doctrine:database:create
symfony console make:migration
syngony console doctrine:migration:migrations
The application is available at http://127.0.0.1:9000
Create fixtures
php bin/console doctrine:fixtures:load
Captch v3 configuration (form contact page)
Generate private keys : https://www.google.com/recaptcha/admin/create
- reCAPTCHA version 3
- Domains : localhost
Add the key in .env file
RECAPTCHA3_KEY=
RECAPTCHA3_SECRET=
Test files are located in project/tests. To run it :
php bin/phpunit --testdox tests/Unit/
php bin/phpunit --testdox tests/Functionnal/
From a Tuto by @Emilien.Gts
Adapted by @francoiscoche