> git clone [email protected]:makomweb/symfony-messenger-tutorial.git
> cd <symfony-messenger-tutorial>
> composer install
php bin/console doctrine:database:create
php bin/console doctrine:schema:update --force
> docker-composer up -d
> symfony server:start -d
> php bin/console messenger:consume async -vv
Your app is running locally under https://127.0.0.1:8000
Your app is running locally under http://guest:[email protected]:15672
> symfony new messenger-tutorial
> symfony server:start
> composer require symfony/messenger
> composer req maker --dev
> composer req annotations
> symfony console make:controller FileUploadController
> composer require symfony/orm-pack
> composer require --dev symfony/maker-bundle
> php bin/console make:entity
With the properties:
- name | string | 255 | not null
- status | string | 255 | not null
php bin/console doctrine:database:create
php bin/console make:migration
php bin/console doctrine:migrations:migrate
# to install TWIG view rendering engine
> composer require twig
symfony console messenger:consume async -vv
RabbitMQ is part of the docker-compose inside this repo.
You can start a docker container with docker-compose up -d
.
After the container is up you can access the webfrontend via http://guest:guest@localhost:15672.
php bin/console make:migration
php bin/console doctrine:migrations:migrate
php bin/console doctrine:database:create
php bin/console doctrine:schema:create
php bin/console doctrine:schema:update --force