Giter Club home page Giter Club logo

ddd_ex_tickets's Introduction

DddExTickets

Simple Ticket Office showing DDD contexts, and aggregates implemented in Elixir/Phoenix

Inspired by:

Mauro Servienti: All Our Aggregates Are Wrong , Explore DDD 2018 - Denver, Sept. 11-14

Stories

For Minimal Viable Product (MVP)
  • There will be only one show available in the system.
  • The number of tickets is set at 30
  • All tickets will be priced at $100/seat
Iteration 001
  • Create an Aggregate for Venue to manage the seats of one show at one venue
Iteration 002
  • Create another Aggregate for SaleTransaction to calculate the cost of the sale
Iteration 003
  • Allow a transaction to be rolled back without central synconization

Vision

  • Aggregates using Eventual Consistency
  • Sales sets the price, Venue assigns the tickets.
  • Sales listens to changes in Venue and updates price
  • ** Needs to have a rollback senario, to show event sourceing

To start your Phoenix server:

  • Setup the project with mix setup
  • Start Phoenix endpoint with mix phx.server

Now you can visit localhost:4000 from your browser.

Next

Next we look at a code example of putting some of these ideas together. DDD is Domain Driven Design. Elixir example

ddd_ex_tickets's People

Contributors

mwindholtz 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.