This is a fork form Symfony-docker by Kevin Dunglas.
It is use as a base teach the basics of symfony.
The project evolves through git branches:
You should start from the branch 1_defaultController_annotation
Your first controller and the Annotation bundle
Add the ChuckNorris Quote Api and endpoints to communicate with it
Add the debug flex recipe :dump()
, logs, exceptions, stack trace...
Add some endpoints related to ChuckNorris Api
Add Twig component to render views from controllers
Add the Form component to store data in the session
Add form validation
Add Mailer component to share your favorites quotes
Add Mailhog (mail catcher).
Add Bootstrap
Add the translation component and use it in the views
- Run
docker-compose up
(the logs will be displayed in the current shell) - Open
https://localhost
in your favorite web browser and accept the auto-generated TLS certificate - Enjoy!
If you work on linux and cannot edit some of the project files right after the first installation, you can run docker-compose run --rm php chown -R $(id -u):$(id -g) .
to set yourself as owner of the project files that were created by the docker container.
Created by Kévin Dunglas, co-maintained by Maxime Helias and sponsored by Les-Tilleuls.coop.