Giter Site home page Giter Site logo

nserbass / cqrs-ddd-php-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from codelytv/php-ddd-example

0.0 2.0 0.0 909 KB

๐Ÿ˜๐ŸŽฏ CQRS PHP Example. Specific examples about how to model an app following DDD and CQRS principles

Home Page: http://codely.tv/screencasts/codigo-acoplado-framework-microservicios-ddd/

PHP 98.40% Shell 0.06% Gherkin 1.54%

cqrs-ddd-php-example's Introduction

You can do awesome stuff with php :)

CodelyTV CircleCI

Implementation example of a PHP application following Domain-Driven Design (DDD) and Command Query Responsibility Segregation (CQRS) principles, keeping the code as simple as possible.

Used by the CodelyTV Pro courses:

Environment setup

Install the needed tools

  1. Clone this repository: git clone https://github.com/CodelyTV/cqrs-ddd-php-example cqrs-ddd-php-example
  2. Move to your project folder: cd cqrs-ddd-php-example
  3. Install dependencies: php composer.phar install

Run the tests!

Once you have all the dependencies, in order to execute the tests, run this command: vendor/bin/behat -p api // This will also create the needed databases. vendor/bin/behat -p applications vendor/bin/phpunit

Run the environment

While this doesn't have docker integration (feel free to do a pull request :) we need a few thing to run this together.

  1. A MySQL database
    • Execute all .sql from /databases dir
  2. Apache/Nginx
  3. Supervisord
    • Execute the applications/api/bin/console codelytv:domain-events:generate-supervisor-files command
    • Link the applications/api/app/config/supervisor folder to the supervisor config one
    • Start supervisord

Contributing

There are some things missing (add swagger, improve documentation...), feel free to add this if you want! If you want some guidelines feel free to contact us :)

Extra

This code was show in the From framework coupled code to #microservices through #DDD talk and doubts where answered in DDD y CQRS: Preguntas Frecuentes video.

cqrs-ddd-php-example's People

Watchers

 avatar  avatar

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.