This application is conscientiously crafted to oversee the management of available cars for sale within a system. Leveraging the Axon Framework for CQRS (Command Query Responsibility Segregation) and Event Sourcing, it seamlessly orchestrates the creation of inventory, ensures the storage of product details in a database, and adeptly publishes events to a Google Cloud Pub/Sub topic.
We must set up Axon Server to handle command and query operations, and configure MySQL as the persistent store destination.
- Setup axon-server and MySQL docker images
local-dev > docker compose up -d
- Run the application
inventory-service > mvn clean springboot:run
- Endpoint for resting
- Get product.
curl --location 'http://localhost:9091/products/product/199'
We have integrated sonar in our project for inspection of code quality to perform automatic reviews with static analysis of code to detect bugs, code smells, and security.
Execute the following Maven command to run Sonar analysis:
mvn clean verify sonar:sonar
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.