You can also watch the talk below:
Repository with backing code for my talk. For more samples like that see EventSourcing in Java repository.
- 📝 CQRS facts and myths explained
- 📝 What onion has to do with Clean Code?
- 📝 How to slice the codebase effectively?
- 📝 Generic does not mean Simple?
- 📝 Can command return a value?
- 📝 How to register all CQRS handlers by convention
- Install git - https://git-scm.com/downloads.
- Install Java JDK 17 (or later) - https://www.oracle.com/java/technologies/downloads/.
- Install IntelliJ, Eclipse, VSCode or other preferred IDE.
- Install docker - https://docs.docker.com/engine/install/.
- Open project folder.
- Run:
docker-compose up. - Wait until all dockers got are downloaded and running.
- You should automatically get:
- PG Admin - IDE for postgres. Available at: http://localhost:5050.
- Login:
admin@pgadmin.org, Password:admin - To connect to server Use host:
postgres, user:postgres, password:Password12!
- Login:
- PG Admin - IDE for postgres. Available at: http://localhost:5050.
- Open, build and run
ECommerceApplication.- Swagger should be available at: http://localhost:8080/swagger-ui/index.html
See also .NET version of those samples.
