last-wishes

Last Wishes is a PHP application written following Domain-Driven Design approach. It's one of the sample applications where you can check the concepts explained in the "Domain-Driven Design in PHP" book.

  • 所有者: dddshelf/last-wishes
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Last Wishes - DDD Sample Application

Build Status

Mandatory requirements

  • PHP
  • npm

Optional requirements

  • RabbitMQ for Messaging exercises
  • Elastic for Elastic exercises
  • Redis optional for Redis exercises

You can install manually or use docker-compose up -d to run all these services inside Docker. The PHP application can be run locally.

Set up the project

curl -sS https://getcomposer.org/installer, php
php composer.phar install

Create the database schema

php bin/doctrine orm:schema-tool:create

Run your Last Will bounded context

php -S localhost:8080 -t src/Lw/Infrastructure/Ui/Web/Silex/Public

Notify all domain events via messaging

php bin/console domain:events:spread

Notify all domain events via messaging to another new BC deployed

php bin/console domain:events:spread <exchange-name>

Exercises

For the DDD learners, I propose you some exercises to practice your skills.

UserRepository running with Redis

The default project uses Doctrine and SQLite to persist users, however, we would like to easily change the persistence storage to use Redis. The PRedis dependency is already specified in the composer.json file.

UserRepository running with MongoDB

The default project uses Doctrine and SQLite to persist users, however, we would like to easily change the persistence storage to use MongoDB.

Log Domain Events into File and Elastic

The default project, does not log anything. We're interested in logging all DomainEvents into a file, using ad-hoc solutions or Monolog. Create a new Domain Events fired when a user tries to log in. Log also to ElasticSearch.

主要指標

概覽
名稱與所有者dddshelf/last-wishes
主編程語言PHP
編程語言PHP (語言數: 3)
平台
許可證
所有者活动
創建於2014-09-12 14:37:39
推送於2019-05-01 07:14:57
最后一次提交2016-06-22 08:05:16
發布數0
用户参与
星數658
關注者數53
派生數117
提交數136
已啟用問題?
問題數16
打開的問題數8
拉請求數4
打開的拉請求數5
關閉的拉請求數3
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?