DevLyon / mixter

CQRS and Event Sourcing Koans
http://devlyon.fr/mixter
MIT License
311 stars 81 forks source link

Errors running ./run #29

Closed CarlosMChica closed 8 years ago

CarlosMChica commented 8 years ago

Hi guys,

I've been trying to go through the exercise but didn't manage to even start it.

I was expecting some kind of template code to start the exercise. Apparently, the only effect that running the script has is the attached output.

I'm not sure if I'm missing something or something is not working as it should in the script.

Thanks in advance. Carlos.

:run output.txt

jeantil commented 8 years ago

Hi carlos,

This is really strange. I just tried again from scratch and here is what i get

jean@byjean /tmp $ git clone git@github.com:DevLyon/mixter.git
Cloning into 'mixter'...
remote: Counting objects: 9531, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 9531 (delta 41), reused 15 (delta 15), pack-reused 9485
Receiving objects: 100% (9531/9531), 3.44 MiB | 2.96 MiB/s, done.
Resolving deltas: 100% (4895/4895), done.
Checking connectivity... done.
jean@byjean /tmp $ cd mixter
jean@byjean /tmp/mixter (master) $ ls
README.md      index.html     run            run.bat        run.ps1        slideResources stepsDoc
jean@byjean /tmp/mixter (master) $ ./run
Language (js, csharp, java, php) ?  java
Clean repository...
Already on 'master'
Initialize solution branch
Switched to a new branch 'solution'
...................................................................................step1 Ok
........step2 Ok
...step3 Ok
........step4 Ok
..............step5 Ok
......Done
Initialize test branch
Switched to a new branch 'test'
....................................................................................step1-test1 Ok
.step1-test2 Ok
.step1-test3 Ok
.step1-test4 Ok
..step2-test1 Ok
..step3-test1 Ok
.step3-test2 Ok
.step3-test3 Ok
.step3-test4 Ok
..step4-test1 Ok
.step4-test2 Ok
..step4-test3 Ok
.step4-test4 Ok
......step5-test1 Ok
.step5-test2 Ok
...Done
Initialize workspace
Switched to a new branch 'workshop'
Koan OK

Mixter - EventSourcing/CQRS Koan
https://github.com/DevLyon/mixter/

=======================
===      STEP 1     ===
=== DELETE COMMAND  ===
=======================

EventStorming :

      +---------+
      | (core)  |
      | Mixter  |
      | context |
      +---------+

+---------+
| Message |  +----------+
+---------+  | Message  |
             | deleted  |
       +---------+      |
       |     +----------+
       | Delete  |
       | message |
       +---------+

CQRS Principle (command) :

                            +---------+
 +---------+                | COMMAND |
-> Command +-------+        +----+----+
 +----+----+       |             |
      |      +-----v-----+       |
             | Aggregate |       |
      |      +-----+-----+       |
                   |             |
      |       +----v---+      +--+---+
       - - - -+ Events | - -  | CQRS |
      |       +--------+      +------+

Subject :

What we will learn
 - publish events from aggregate,
 - use projection for decision inside aggregate (contains only "state" for future decision, DO NOT keep all state like in an entity)
 - Implement "business rules" that insure aggregate consistency (based on decision projection and command=method parameters)

In brief : the C of CQRS

Welcome

1 test failed... It's normal :)
It's your first exercice. You should implement the failing test.
When it's green, then call "next" command to jump to next test

If you cannot find the solution, DON'T PANIC. You can go to the next step with the "jumpToNextStep" command. But only use it if you are short on time.

Feel free to use issues in this repo to give your feedback, to propose some improvements, to ask for other languages...and even better to submit pull requests.

Enjoy

Can you try deleting the repository and cloning it again please ? just to make there isn't a local change breaking the script... It is not explicitely said but to actually run the tests you are supposed to use maven / your favorite IDE for the java version.

If it still doesn't work, can you tell us which version of git you are using ?

Thanks !

CarlosMChica commented 8 years ago

I'm not too sure what I did the first time as it was quite a while ago, but it works fine now.

Thanks :)