• Stars
    star
    115
  • Rank 305,916 (Top 7 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

DDD, CQRS and Hexagonal Architecture example using inject package

Todo List

DDD, CQRS and Hexagonal Architecture example using inject package.

Presentation slide in PyCon JP 2017: Python ใซใŠใ‘ใ‚‹ใƒ‰ใƒกใ‚คใƒณ้ง†ๅ‹•่จญ่จˆ(ๆˆฆ่ก“้ข)ใฎๅ‹˜ใฉใ“ใ‚

Architecture

architecture

Requirements

  • click
  • enum34
  • inject
  • gxredis
  • pytest

Setup

$ git clone https://github.com/ledmonster/ddd-python-inject
$ cd todolist
$ python setup.py develop

Also, you need to run redis.

Usage

$ ./bin/todo add --name foo
#1: foo

$ ./bin/todo add --name bar
#2: bar

$ ./bin/todo add --name baz
#3: baz

$ ./bin/todo list
[ ] #1: foo
[ ] #3: baz
[ ] #2: bar

$ ./bin/todo done 2
[x] #2: bar

$ ./bin/todo list
[ ] #1: foo
[ ] #3: baz
[x] #2: bar