This project is a basic example of an event sourced and CQRS application.
The persistence layer is simulated by actors and stored in memory.
Execute the following commands in the root of the project:
$ sbt
> ~run
The application is accessible through this URL: http://localhost:9000/
POST /accounts
GET /accounts
GET /accounts/<UUID>
POST /accounts/<UUID>/deposit?amount=<AMOUNT>
NB: AMOUNT should be greater than zero.
POST /accounts/<UUID>/withdraw?amount=<AMOUNT>
NB: AMOUNT should be greater than zero and there should be enough money in the account.
POST /accounts/<UUID>/close
NB: The account should be empty.