docker compose up -d
Veritabanı otomatik oluşmaz ise manuel oluşturabilirsiniz:
CREATE DATABASE ecommerce
php bin/console doctrine:migrations:migrate
php bin/console doctrine:fixtures:load
Veritabanını dummy data ile birlikte tekrar oluşturmak için
php bin/console doctrine:migrations:migrate --seed
VEYA
php bin/console doctrine:migrations:migrate first
php bin/console doctrine:migrations:migrate
php bin/console doctrine:fixtures:load
Postman API ve Example Request için:
https://documenter.getpostman.com/view/22844490/VUqmvJvC
- RabbitMQ:
composer require amqp-messenger
- Mailer:
composer require symfony/mailer
php bin/console messenger:consume async -vv
|-- config
| `-- bundles.php
| |-- routes
| | `-- annotations.yaml
|-- migrations
| `-- Version20220822074031.php
|-- src
| |-- Command
| | `-- FreshCommand.php
| |-- Controller
| | `-- OrderController.php
| |-- DataFixtures
| | `-- AppFixtures.php
| | `-- CategoryFixtures.php
| | `-- ...
| |-- Entity
| | `-- Category.php
| | `-- Order.php
| | `-- ...
| |-- EventListener
| | `-- OrderProductListener.php
| |-- EventSubscriber
| | `-- ExceptionSubscriber.php
| |-- Helper
| | `-- CalculationHelper.php
| | `-- GeneralHelper.php
| | `-- ...
| |-- Interfaces
| | |-- Discount
| | | `-- DiscountStrategyInterface.php
| | | `-- ...
| |-- Message
| | `-- OrderMailNotification.php
| |-- MessageHandler
| | `-- OrderMailNotificationHandler.php
| |-- Repository
| | `-- BaseRepository.php
| | `-- OrderRepository.php
| | `-- ...
| |-- Service
| | `-- BaseService.php
| | `-- OrderService.php
| | `-- ...
| |-- Strategy
| | |-- Discount
| | | `-- DiscountManagerStrategy.php
| | | `-- ...
| |-- Validator
| | `-- TableRecordExists.php
| | `-- TableRecordExistsValidator.php
| |-- docker
| | |-- images
| | | |-- nginx
| | | |-- php
| | | |-- postgresql
|`-- .env
|`-- docker-compose.yml