These are example applications that use:
- Install Dip
- Start Quest application
cd quest && dip infra up && dip up
- Start Voyage application
cd voyage && dip infra up && dip up
- Create an order in the Quest app
curl -L http://quest.lvh.me/api/v1/orders -F '[order]name=Foo' -F '[order]qty=3' -F '[order]price=42'
- Send the order to the Voyage app with Outbox pattern
curl -X POST -L http://quest.lvh.me/api/v1/orders/ORDER-ID/completion
- Show the imported order in the Voyage app
curl -L http://voyage.lvh.me/api/v1/orders/ORDER-ID
Sometimes Kafka broker doesn't receive a message into the topic. In this case:
- stop all applications with
dip down
- stop infra containers with
dip infra down
- delete kafka volumes with
docker volume rm dip-infra-kafka-latest_kafka dip-infra-kafka-latest_zookeeper