Showing Alvaro best practices.
This is my code following PicPay chalenge guidelines.
Here I follow the hexagonal-architecture.
To follow it and keep our domain secure from external behaviour:
- Entities contains the entity data.
- Entities DOES NOTHING.
- Services modifies Entities.
- Services HAVE NO data.
- All business logic here should be tested. (like UNIQUE KEYS on DB)
Here is the full documentation, with more detailed desired behaviour.
run
make infra/up/complete