Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ykayacan/spring-boot-axon-demo
This is an example Spring Boot project with Axon Framework to demonstrate CQRS event sourcing.
https://github.com/ykayacan/spring-boot-axon-demo
axon-framework cqrs java-14 spring-boot
Last synced: 9 days ago
JSON representation
This is an example Spring Boot project with Axon Framework to demonstrate CQRS event sourcing.
- Host: GitHub
- URL: https://github.com/ykayacan/spring-boot-axon-demo
- Owner: ykayacan
- Created: 2020-05-11T20:37:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-05-11T20:51:35.000Z (over 4 years ago)
- Last Synced: 2024-11-09T09:39:27.629Z (2 months ago)
- Topics: axon-framework, cqrs, java-14, spring-boot
- Language: Java
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started
This is an example Spring Boot project with Axon Framework to demonstrate CQRS event sourcing.
Required Java Version: 14
## Usage
Run Axon Server
```bash
docker run -d -p 8024:8024 -p 8124:8124 axoniq/axonserver
```Run command service (default port: 8080)
```bash
./gradlew bootRun
```Run query service (default port: 8081)
```bash
./gradlew bootRun
```## Example
Send request to command service
```bash
curl -X POST http://localhost:8080/ship-order
```Send request to query service
```bash
curl http://localhost:8081/all-orders
```## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
## License
[MIT](https://choosealicense.com/licenses/mit/)