sth77 / spring-angular-ddd-hateoas

Code from my talk "Building better GUIs using DDD and Spring HATEOAS"
3 stars 6 forks source link

spring-angular-ddd-hateoas

Code from my talk and blog post "Building better GUIs using DDD and Spring HATEOAS"

Dependencies / Features

Business case

A product manager submits a production order to the system (Operation "submit"). If not submitted yet, the production order can be renamed. A manufacturer accepts the production order (Operation "accept"), indicating the expected delivery date, which must be in the future.

All three operations are modelled as HAL links on the production orders in the REST API. The GUI uses the links to render or hide the button which triggers the respective action.

Benefits Frontend

Benefits Backend

How to run

./mvnw clean spring-boot:run

Open http://localhost:8080 in a web browser to see the GUI Open http://localhost:8080/api to see the capabilities of the API. Follow the links to resources and actions.

License

MIT