Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.27 KB

README.md

File metadata and controls

48 lines (33 loc) · 1.27 KB

Event reservation

DDD sample application based on the schema.org EventReservation model.

This application, inspired by Codeliner's sample, shows a similar way to implement the Domain-driven design on top of the Zend Expressive framework.

  • Choose an event you want to go.
  • Fill in a form to reserve your seat.
  • The application will generate a ticket and send you a confirmation email.

Installation

$ git clone https://github.com/Antoine87/ddd-event-reservation.git
$ cd ddd-event-reservation/
$ composer install

Start the application

Either

$ php -S 0.0.0.0:8080 -t public/ public/index.php

Or Zend Expressive default script. (see the doc)

$ composer run --timeout=86400 serve

By default the application is shipped and configured to use a sample.db sqlite database in the data folder.

Testing

Both coding style and unit tests :

$ composer check

File hierarchy

Expand to view the file hierarchy

alt text