Git Product home page Git Product logo

task-ddd's Introduction

Task DDD

Warehouse API in Symfony following DDD (Domain Driver Design).

Examples in the repo

  • User authentication based in JWT
  • UUID as binary to improve the performance and create a nightmare for the dba.
  • Automated tasks with makefile
  • Dev environment in Docker. Boosting build speed with docker cache layers in pipeline. Orchestrating with Docker Compose.
  • An example of table inheritance and discriminator strategy
  • Code structured in layers as appears in DDD in php book.
  • Command Bus implementation
  • DomainEvents
  • Events to RabbitMQ
  • Async Event subscribers
  • Swagger API Doc

The folder structure

src
  \
   |\ Application     `Contains the Use Cases of the domain system and the Data Transfer Objects`
   |
   |\ Domain          `The system business logic layer`
   |
   |\ Infrastructure  `Its the implementation of the system outside the model. I.E: Persistence, serialization, etc`
   |
    \ UI              `User Interface. This use to be inside the Infrastructure layer, but I don't like it.`

Stack

  • PHP 7.2
  • Mysql 5.7
  • RabbitMQ 3

Sample Data

Company Name Type Prefix User Email Password
Acme Company merchant XTR [email protected] 11223344
Long Silver Co merchant MKT [email protected] 11223344
White Star Co merchant CPU [email protected] 11223344
FastCargo cargo A [email protected] 11223344
RabbitLines cargo B [email protected] 11223344
TeapotCargo cargo C [email protected] 11223344

Project Setup

Up environment:

make start

Static code analysis:

make style

Code style fixer:

make cs

Code style checker:

make cs-check

Enter in php container:

make s=php sh

Disable\Enable Xdebug:

make xoff

make xon

Disclaimer

Heavily inspired from

https://github.com/jorge07/ddd-playground

https://github.com/jorge07/symfony-4-es-cqrs-boilerplate

task-ddd's People

Contributors

mberberoglu avatar

Stargazers

José Ginés Hernández Galindo avatar Adrian M avatar Szymon Ciompała avatar Daniel Sánchez avatar Cauê avatar Mardari Dorel avatar Jorge Arco avatar

Watchers

James Cloos avatar  avatar Cauê avatar

Forkers

bareser

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.