https://github.com/oskardudycz/cqrs-is-simpler-with-java
https://github.com/oskardudycz/cqrs-is-simpler-with-java
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/oskardudycz/cqrs-is-simpler-with-java
- Owner: oskardudycz
- Created: 2023-05-30T09:07:27.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-01T05:17:00.000Z (about 2 years ago)
- Last Synced: 2025-03-29T07:03:04.634Z (4 months ago)
- Language: Java
- Size: 148 KB
- Stars: 24
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
[](https://twitter.com/oskar_at_net) [](https://github.com/sponsors/oskardudycz/) [](https://event-driven.io/?utm_source=cqrs_is_simpler_jvm) [](https://www.architecture-weekly.com/?utm_source=cqrs_is_simpler_jvm)

# CQRS is simpler than you may think
You can also watch the talk [below](https://m.youtube.com/watch?v=9COWKz1E32w):
Repository with backing code for my talk. For more samples like that see [EventSourcing in Java repository](https://github.com/oskardudycz/EventSourcing.JVM).
## Read also
- 📝 [CQRS facts and myths explained](https://event-driven.io/en/cqrs_facts_and_myths_explained/?utm_source=event_sourcing_net)
- 📝 [What onion has to do with Clean Code?](https://event-driven.io/pl/onion_clean_code/?utm_source=event_sourcing_net)
- 📝 [How to slice the codebase effectively?](https://event-driven.io/en/how_to_slice_the_codebase_effectively/?utm_source=event_sourcing_net)
- 📝 [Generic does not mean Simple?](https://event-driven.io/en/generic_does_not_mean_simple/?utm_source=event_sourcing_net)
- 📝 [Can command return a value?](https://event-driven.io/en/can_command_return_a_value/?utm_source=event_sourcing_net)
- 📝 [How to register all CQRS handlers by convention](https://event-driven.io/en/how_to_register_all_mediatr_handlers_by_convention/?utm_source=event_sourcing_net)## Prerequisites
1. Install git - https://git-scm.com/downloads.
2. Install Java JDK 17 (or later) - https://www.oracle.com/java/technologies/downloads/.
3. Install IntelliJ, Eclipse, VSCode or other preferred IDE.
4. Install docker - https://docs.docker.com/engine/install/.
5. Open project folder.## Running
1. Run: `docker-compose up`.
2. Wait until all dockers got are downloaded and running.
3. You should automatically get:
- PG Admin - IDE for postgres. Available at: http://localhost:5050.
- Login: `[email protected]`, Password: `admin`
- To connect to server Use host: `postgres`, user: `postgres`, password: `Password12!`
4. Open, build and run `ECommerceApplication`.
- Swagger should be available at: http://localhost:8080/swagger-ui/index.htmlSee also [.NET version of those samples](https://github.com/oskardudycz/cqrs-is-simpler-with-net-and-csharp).