Skip to content

tpierrain/outside-in-hexagonal

Repository files navigation

Outside-in hexagonal this!

A code kata by @tpierrain

Objective

Implement a "service" that is able to provide Pasta Recipes following the outside-in TDD approach and the hexagonal architecture to prevent domain code from being impacted by infrastructure code.

Details

  1. The "service" should allow its consumers:
  • to get the Recipe (i.e. the list of the ingredients) of a Pasta given its name
  • to get the list of all the Pastas that have a given Ingredient
  • to add the Recipe of a new Pasta and to persist it
  1. A Pasta Recipe is a list of ingredient associated with the name of a Pasta. E.g.:
  • gnocchi(eggs-potatoes-flour)
  • spaghetti(eggs-flour)
  • organic spaghetti(organic eggs-flour)
  • spinach farfalle(eggs-flour-spinach)
  • tagliatelle(eggs-flour)
  1. The domain model should not be the same as the one for the communication with the service consumers (i.e. the DTOs).

About

A greenfield code kata to show how to build a system following the outside-in TDD approach and relying on the hexagonal architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages