Skip to content

Showcase of a simple architectural pattern using Commands and Queries in Spring Boot

Notifications You must be signed in to change notification settings

maxwellt/spring-boot-cq-architecture

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Spring Boot architecture using Commands and Queries

This project aims to showcase a simple architectural pattern for applications in which the simply three-tiered layer (Controller -> Service -> Repository) is no longer maintainable. You can find the full details on Bluemagma's blog post about it.

Run this project

Simply execute following command:

./mvnw spring-boot:run

Once it's running you can perform following actions:

  • GetAllProductsQuery: curl -v http://localhost:9010/product
  • GetProductByIdQuery: curl -v http://localhost:9010/product/{productId}
  • AddProductCommand: curl -v -X PUT http://localhost:9010/product -H "Content-Type: application/json" -d '{"name": "New Product", "unitPrice": "10.99", "description": "New Product description"}'

About

Showcase of a simple architectural pattern using Commands and Queries in Spring Boot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages