Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

muratcakmaksoftware/ecommerceis-symfony

Repository files navigation

Installation

Docker Compose Install & Run

docker compose up -d

Database Create

Veritabanı otomatik oluşmaz ise manuel oluşturabilirsiniz:

CREATE DATABASE ecommerce

Migration

php bin/console doctrine:migrations:migrate

Seed ( Dummy Data )

php bin/console doctrine:fixtures:load

Migrate Fresh & Seed

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

About

Postman API ve Example Request için:
https://documenter.getpostman.com/view/22844490/VUqmvJvC

Packages

  • RabbitMQ: composer require amqp-messenger
  • Mailer: composer require symfony/mailer

Start Queue

php bin/console messenger:consume async -vv

File Structure

|-- 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

Preview

Database

db!

Repository Design Pattern

db!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages