Giter VIP home page Giter VIP logo

adamaltman / last-wishes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dddshelf/last-wishes

2.0 2.0 1.0 10.74 MB

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.

Home Page: https://leanpub.com/ddd-in-php

PHP 86.92% HTML 12.88% CSS 0.20%

last-wishes's Introduction

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.

last-wishes's People

Contributors

carlosbuenosvinos avatar hendore avatar keyvanakbary avatar mgonzalezbaile avatar

Stargazers

 avatar  avatar

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.